summaryrefslogtreecommitdiff
path: root/update-all.in
diff options
context:
space:
mode:
Diffstat (limited to 'update-all.in')
-rw-r--r--update-all.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/update-all.in b/update-all.in
index a776498..73a3ab1 100644
--- a/update-all.in
+++ b/update-all.in
@@ -14,5 +14,9 @@ do
cmd="ssh -t -t ${system}"
fi
cmd="${cmd} update-me"
- urxvt -title "${system}: update-me" -e ${cmd} &
+ if [ -z "${DISPLAY}" ]; then
+ screen -S "update-all.${system// /.}" -d -m ${cmd}
+ else
+ urxvt -title "${system}: update-me" -e ${cmd} &
+ fi
done