diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-10-21 23:10:47 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-10-22 02:03:15 +0200 |
commit | ca0ccc561347202d69ef1161930811a54ef48322 (patch) | |
tree | 45f4190f9bca403e93f510419a016a4ec6b0cc2f /xmc | |
parent | 66bfa9d1afe3381e8e09ed9470328841d0c38714 (diff) |
Change host handling: Explicit localhost means force use ssh; no host implies non-ssh (and requires -- before command).
Diffstat (limited to 'xmc')
-rwxr-xr-x | xmc | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -1,12 +1,3 @@ #!/bin/bash -# danish locale is broken - see http://bugs.debian.org/181027 -#export LC_ALL=C - -if [ $# -eq 0 ]; then - xsh localhost mc -elif [ $# -eq 1 -a "$1" = "su" ]; then - xsh localhost mc su -else - xsh $@ mc -fi +exec xsh $@ -- mc |