Browse Source

Fix: print help message if unknown option is given

master
Harish.K 10 years ago
parent
commit
72442e008f
  1. 5
      bin/installer-script.sh

5
bin/installer-script.sh

@ -12,7 +12,7 @@ appRoot=$(readlink -f $(dirname $(readlink -f $0))/.. );
printHelp(){ printHelp(){
cat<<EOF cat<<EOF
installer-scripts --update | --check | --install <app_name> | --list installer-scripts --update | --check | --install <app_name> | --list
EOF
EOF
} }
printPackages(){ printPackages(){
@ -46,7 +46,8 @@ case $1 in
--check) --check)
updateBinLinks; updateBinLinks;
;; ;;
*)
printHelp;
esac esac

Loading…
Cancel
Save