diff options
-rwxr-xr-x | xsh | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -99,25 +99,23 @@ if [ -z "$prg_base" ]; then prg_base='/bin/bash' fi -prg_local="$prg_base $prg_opts" -prg_remote="bash --login -i -c \"$prg_base $prg_opts\"" -prg_remote_suu="echo -n 'Changing to root...: '; su $su_opts -c \"cd; $prg_base $prg_opts\"" +prg="$prg_base $prg_opts" +prg_remote_suu="echo -n 'Changing to root...: '; su $su_opts -c \"cd; $prg\"" if [ "$SU" != 1 ]; then if [ $HOST = "localhost" ]; then - termwrapper $prg_local + termwrapper $prg else - termwrapper ssh $ssh_opts $HOST $prg_remote + termwrapper ssh $ssh_opts $HOST $prg fi else if [ "$SUHACK" = 1 ]; then -# termwrapper ssh $ssh_opts $HOST su $su_opts -c \"$prg_remote\" - termwrapper ssh $ssh_opts $HOST $prg_remote + termwrapper ssh $ssh_opts $HOST $prg else if [ "$SUU" = 1 ]; then termwrapper ssh $ssh_opts $HOST $prg_remote_suu else - termwrapper ssh $ssh_opts root@$HOST $prg_remote + termwrapper ssh $ssh_opts root@$HOST $prg fi fi fi |