diff options
-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 |