diff options
author | Christian Hesse <mail@eworm.de> | 2024-05-27 18:19:46 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-05-29 09:23:49 +0200 |
commit | e97adc401a0b6478b29796ab53b447cb234b32ad (patch) | |
tree | 343e227dbec7e97235da2ca64f108fdfc9d0a434 | |
parent | 4595e819d394405a5b0e376bab8d671ab6a66cc0 (diff) | |
download | pacman-offline-e97adc401a0b6478b29796ab53b447cb234b32ad.tar.gz pacman-offline-e97adc401a0b6478b29796ab53b447cb234b32ad.tar.zst |
handle request for help first
-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 ;; |