aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-09-30 03:23:37 +0200
committerMattias Andrée <maandree@operamail.com>2013-09-30 03:23:37 +0200
commit141f6529fddef863accce4cfcf723ddd13ffba65 (patch)
tree386c6528da4b26e3d201f5a3123dffd16ee381dd
parentget rid of python (diff)
downloadgates-of-tartaros-141f6529fddef863accce4cfcf723ddd13ffba65.tar.gz
gates-of-tartaros-141f6529fddef863accce4cfcf723ddd13ffba65.tar.bz2
gates-of-tartaros-141f6529fddef863accce4cfcf723ddd13ffba65.tar.xz
increased extensibility
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rwxr-xr-xgot7
1 files changed, 5 insertions, 2 deletions
diff --git a/got b/got
index b41091a..436a383 100755
--- a/got
+++ b/got
@@ -24,6 +24,9 @@ if [ "$1" = "-" ]; then
export "$@"
+ login_function=_login
+ display_function=_display
+
function _login
{
read user
@@ -56,8 +59,8 @@ if [ "$1" = "-" ]; then
. "@etc@/@command@rc"
fi
- _display
- _login
+ $display_function
+ $login_function
else
# cannot get any other solution to work with `login`
# then to spawn a new process with pipes preset