X-Git-Url: https://git.madduck.net/etc/mrsetup.git/blobdiff_plain/f2cc227e95530303ac6407fa15039eab9cbd771a..8d723ff13bdbfacff2ae2f1847512bdec36bbd55:/mrsetup?ds=inline diff --git a/mrsetup b/mrsetup index 41173f9..275ec3a 100755 --- a/mrsetup +++ b/mrsetup @@ -5,7 +5,7 @@ # Copyright © 2008 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -set -eu +set -u MY_GIT_SERVER=git.madduck.net MY_GIT_REPOS='~/git' @@ -19,7 +19,7 @@ MR_FGIT=.fgits/mr.git MR=.mr BIN_DIR=.bin -if [ -z "$SSH_AUTH_SOCK" ]; then +if [ -z "${SSH_AUTH_SOCK:-}" ]; then echo E: '$SSH_AUTH_SOCK' is not set. >&2 exit 1 fi @@ -101,8 +101,14 @@ else git add .mrconfig git commit -m'initial checkin' git push --all + echo fi -[ -f "$0" ] && rm $0 +[ -f "$0" ] && rm $0 || : + +echo I: spawning a shell... +$SHELL --interactive --login + +echo I: back from the shell. exit 0