summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--update-all.in16
1 files changed, 9 insertions, 7 deletions
diff --git a/update-all.in b/update-all.in
index c82ebc6..2fac8a0 100644
--- a/update-all.in
+++ b/update-all.in
@@ -45,13 +45,15 @@ for system in "${!systems[@]}"; do
done
if [ -z "${DISPLAY}" ]; then
- pids=$(
- screen -list \
- | sed '
- s/^\s\+\([0-9]\+\)\.update-all\s.*$/\1/
- t
- d
- '
+ pids=(
+ $(
+ screen -list \
+ | sed '
+ s/^\s\+\([0-9]\+\)\.update-all\s.*$/\1/
+ t
+ d
+ '
+ )
)
fi