aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xgot2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index acb3691..ac3a09e 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ SBIN = /sbin
LICENSES = /usr/share/licenses
COMMAND = got
PKGNAME = gates-of-tartaros
+SSHUSER = sshlogin
BASH_SHEBANG = /usr/bin/env bash
@@ -17,6 +18,7 @@ got.install: got
sed -i 's:@prefix@:$(PREFIX):g' "$@"
sed -i 's:@etc@:$(SYSCONF):g' "$@"
sed -i 's:@command@:$(COMMAND):g' "$@"
+ sed -i 's:@sshlogin@:$(SSHUSER):g' "$@"
got-cmd.install: got-cmd
cp "$<" "$@"
diff --git a/got b/got
index 436a383..ba8a41a 100755
--- a/got
+++ b/got
@@ -32,7 +32,7 @@ if [ "$1" = "-" ]; then
read user
if [ ! "${user/@/}" = "${user}" ]; then
export GOT_COMMAND="ssh ${user}"
- login -p -f sshlogin
+ login -p -f @sshlogin@
elif [ "${user::1}" = "-" ]; then
stty -icanon -echo -isig -ix{on,off,any}
echo $'\e[01;31mNice try! Sleeping for 10 minutes...\e[00m'