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(){
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user