diff options
author | Erich Eckner <git@eckner.net> | 2021-04-07 18:43:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-04-07 18:43:07 +0200 |
commit | 5eed4e7862e6377ca199f897bb77d451bfa8582e (patch) | |
tree | b0619dc1c3d18c5785642ad6ff32226f53d01b39 | |
parent | fe9f4a21fe7d45f6ffbfabd82b2386a0b477b743 (diff) | |
download | update-all-5eed4e7862e6377ca199f897bb77d451bfa8582e.tar.xz |
update-all: -c new
-rw-r--r-- | update-all.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/update-all.in b/update-all.in index fdeeaa5..8e8a211 100644 --- a/update-all.in +++ b/update-all.in @@ -8,6 +8,7 @@ usage() { >&2 printf 'usage:\n' >&2 printf ' %s\n' "${0##*/}" + >&2 printf ' %s -c\n' "${0##*/}" >&2 printf ' %s $id $tmpdir [cs]\n' "${0##*/}" exit 1 } @@ -50,6 +51,14 @@ if [ "$#" -eq 3 ]; then exit ${err} fi +if [ "$#" -eq 1 ] \ +&& [ "x$1" = 'x-c' ]; then + for system in "${!systems[@]}"; do + screen -S update-clear-all -d -m "${0}" "${system}" "${tmp_dir}" 'c' + done + exit +fi + if [ "$#" -ne 0 ]; then usage fi |