add version + -v cli parameter

This commit is contained in:
damage 2023-09-16 21:53:58 +02:00
parent 87a453c24c
commit aad26d3fdd

7
s3h.sh
View File

@ -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"