From 5eed4e7862e6377ca199f897bb77d451bfa8582e Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 7 Apr 2021 18:43:07 +0200 Subject: update-all: -c new --- update-all.in | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3-70-g09d2