Fix: print help message if unknown option is given

This commit is contained in:
2015-09-05 11:40:06 +05:30
parent 967ba909c3
commit 72442e008f
+3 -2
View File
@@ -12,7 +12,7 @@ appRoot=$(readlink -f $(dirname $(readlink -f $0))/.. );
printHelp(){
cat<<EOF
installer-scripts --update | --check | --install <app_name> | --list
EOF
EOF
}
printPackages(){
@@ -46,7 +46,8 @@ case $1 in
--check)
updateBinLinks;
;;
*)
printHelp;
esac