summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-10-21 22:54:54 +0200
committerJonas Smedegaard <dr@jones.dk>2016-10-21 23:03:54 +0200
commitac5b6f512db2027931028c16d0e00755f83947d0 (patch)
tree9636b90da7d72d369fbd7b6b0a2a6d15f0e7792a
parent94d2357c843d2defc7513fe37843e3c7e9f475ac (diff)
Tidy variable prg_su (not specific to remote use;no opts defined).
-rwxr-xr-xxsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/xsh b/xsh
index 8ceecb3..4656214 100755
--- a/xsh
+++ b/xsh
@@ -100,7 +100,7 @@ if [ -z "$prg_base" ]; then
fi
prg="$prg_base $prg_opts"
-prg_remote_suu="echo -n 'Changing to root...: '; su $su_opts -c \"cd; $prg\""
+prg_su="echo -n 'Changing to root...: '; su -c \"cd; $prg\""
if [ "$SU" != 1 ]; then
if [ $HOST = "localhost" ]; then
@@ -113,7 +113,7 @@ else
termwrapper ssh $ssh_opts $HOST $prg
else
if [ "$SUU" = 1 ]; then
- termwrapper ssh $ssh_opts $HOST $prg_remote_suu
+ termwrapper ssh $ssh_opts $HOST $prg_su
else
termwrapper ssh $ssh_opts root@$HOST $prg
fi