aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rwxr-xr-xshell3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell b/shell
index d8ff48f..f6319a8 100755
--- a/shell
+++ b/shell
@@ -22,6 +22,9 @@ else
if [ -z "$COMMAND" ] && screen -ls $DEST | grep -q "There is a screen on"; then
# Local existing screen shell
wscreen $DEST
+ elif [ -z "$COMMAND" ] && [ "$DEST" == "root" ]; then
+ # Local root shell
+ sudo screen -x
elif [ "$DEST" == "local" ]; then
# Local screen shell
wscreen $COMMAND