From ac5b6f512db2027931028c16d0e00755f83947d0 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 21 Oct 2016 22:54:54 +0200 Subject: Tidy variable prg_su (not specific to remote use;no opts defined). --- xsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xsh') 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 -- cgit v1.2.3