diff options
Diffstat (limited to 'stupid.sh')
| -rwxr-xr-x | stupid.sh | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -1,6 +1,5 @@ #!/bin/bash -QUIET_INSTALL='no' STUPID_DIR=$(pwd) function installRoutine { @@ -90,19 +89,17 @@ function handlePackages { while [ ! -z $1 ]; do case $1 in - -q|quiet) - QUIET_INSTALL='yes' - ;; -i|install) - handlePackages installRoutine $@ - exit + handlePackages installRoutine $@ ; exit ;; -r|remove) - handlePackages removeRoutine $@ - exit + handlePackages removeRoutine $@ ; exit + ;; + -q|query) + echo 'Not implemented yet!' ; exit ;; *) - echo '[Error] Invalid command!' + echo "[Error] Invalid command \"$1\"!" && exit 1 ;; esac shift |
