summaryrefslogtreecommitdiff
path: root/xsh
diff options
context:
space:
mode:
Diffstat (limited to 'xsh')
-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