diff options
author | Erich Eckner <git@eckner.net> | 2018-05-15 13:57:54 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-15 13:57:54 +0200 |
commit | 429656ed252e596f8c4e32216a7314f6172c4e48 (patch) | |
tree | 86fa68218e9632d82454802edeee28bc185f74de /bin/delete-packages | |
parent | 1a1f676cb7e77334b85c27db23be75d5ca8f1909 (diff) | |
download | builder-429656ed252e596f8c4e32216a7314f6172c4e48.tar.xz |
bin/db-update,bin/delete-packages,bin/get-package-updates -b|--block -> -w|--wait to unitise flags
Diffstat (limited to 'bin/delete-packages')
-rwxr-xr-x | bin/delete-packages | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/delete-packages b/bin/delete-packages index 0279be8..520b664 100755 --- a/bin/delete-packages +++ b/bin/delete-packages @@ -25,17 +25,17 @@ usage() { >&2 echo ' delete obsolete binary packages.' >&2 echo '' >&2 echo 'possible options:' - >&2 echo ' -b|--block: If necessary, wait for lock blocking.' >&2 echo ' -h|--help: Show this help and exit.' >&2 echo ' -n|--no-action: Only print what would be deleted.' + >&2 echo ' -w|--wait: If necessary, wait for lock blocking.' [ -z "$1" ] && exit 1 || exit "$1" } eval set -- "$( - getopt -o bhn \ - --long block \ + getopt -o hnw \ --long help \ --long no-action \ + --long wait \ -n "$(basename "$0")" -- "$@" || \ echo usage )" @@ -46,15 +46,15 @@ no_action=false while true do case "$1" in - -b|--block) - block_flag='' - ;; -h|--help) usage 0 ;; -n|--no-action) no_action=true ;; + -w|--wait) + block_flag='' + ;; --) shift break |