diff --git a/s3h.sh b/s3h.sh index 6e8344f..49b4cfe 100755 --- a/s3h.sh +++ b/s3h.sh @@ -3,6 +3,13 @@ # config DIALOG=dialog #gdialog kdialog START_DIR='~/.s3h' +VERSION="1.3" + +# TODO: use opt parsing +if [[ $# -eq 1 && "$1" == "-v" ]]; then + echo "$VERSION" + exit 0 +fi if [[ $# -eq 1 && -d "$1" ]]; then START_DIR="$1"