diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pacman-offline | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline index cf7d7c0..ae657fb 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -26,6 +26,16 @@ TIMER=0 while getopts 'cfhrty' opt; do case ${opt} in + h) + help + exit 0 + ;; + esac +done + +OPTIND=1 +while getopts 'cfhrty' opt; do + case ${opt} in c) if pacman-conf 'CleanMethod' | grep -q 'KeepCurrent'; then CLEAN=1 @@ -36,10 +46,6 @@ while getopts 'cfhrty' opt; do f) rm -f /system-update ;; - h) - help - exit 0 - ;; r) REBOOT=1 ;; |