mirror of
https://github.com/harish2704/installer-scripts.git
synced 2026-09-10 06:11:08 +00:00
Fix: print help message if unknown option is given
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user