diff options
author | Christian Hesse <mail@eworm.de> | 2017-10-02 16:20:15 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2017-10-02 16:20:15 +0200 |
commit | a938d55749a9386a9f0ba4e2152a5a31f7f9c886 (patch) | |
tree | f35fac75f443ffec494b0b5cdf8e0075a89a1f49 | |
parent | 5749c1d7df98d8e6aa2bbf9806b6a4d7a08101e0 (diff) | |
download | pacman-offline-a938d55749a9386a9f0ba4e2152a5a31f7f9c886.tar.gz pacman-offline-a938d55749a9386a9f0ba4e2152a5a31f7f9c886.tar.zst |
add option to force system-update
-rwxr-xr-x | bin/pacman-offline | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline index 8f86868..79eb1bd 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -5,12 +5,16 @@ set -e function help() { echo "usage: ${0} [OPTIONS]" echo + echo ' -f force if other system-update is pending' echo ' -h this help' echo ' -y update sync databases' } -while getopts 'hy' opt; do +while getopts 'fhy' opt; do case ${opt} in + f) + rm -f /system-update + ;; h) help exit 0 |