Skip to content

Commit 208b6af

Browse files
author
Veeresh Khanorkar
committed
Added small check
1 parent 6622200 commit 208b6af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gitcrypt

+5-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,11 @@ case "$1" in
156156
;;
157157
*)
158158
# Not a valid option
159-
echo "Gitcrypt: command does not exist: $1"
159+
if [ -z "$1" ]; then
160+
echo "Gitcrypt: available options: init, version"
161+
else
162+
echo "Gitcrypt: command does not exist: $1"
163+
fi
160164
exit 1
161165
;;
162166
esac

0 commit comments

Comments
 (0)