add debug

This commit is contained in:
root 2020-03-12 22:05:32 +01:00
parent 820d657473
commit 5b6d1b9cdc
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,7 @@ if [ -z ${SSHS+x} ]; then SSHS=false;fi
# https://guide.bash.academy/expansions/ # https://guide.bash.academy/expansions/
# https://www.tldp.org/LDP/abs/html/refcards.html#AEN22473 # https://www.tldp.org/LDP/abs/html/refcards.html#AEN22473
if [[ $- = *i* ]] ; then if [[ $- = *i* ]] ; then
#echo "interactive shell" >&2 echo "interactive shell" >&2
# define variables # define variables
# default timeouts definted in myshellconfig_load_default # default timeouts definted in myshellconfig_load_default
@ -107,5 +107,7 @@ EOF
--8<--- end ---------------- $(date) ---------------8<-- --8<--- end ---------------- $(date) ---------------8<--
EOF EOF
else
echo "non-interactive shell" >&2
fi fi

View file

@ -77,7 +77,7 @@ if ! $SSHS; then
[ -z "${MYSHELLCONFIG_GIT_REMOTE_NAME+x}" ] && export MYSHELLCONFIG_GIT_REMOTE_NAME=origin [ -z "${MYSHELLCONFIG_GIT_REMOTE_NAME+x}" ] && export MYSHELLCONFIG_GIT_REMOTE_NAME=origin
[ -z "${MYSHELLCONFIG_GIT_BRANCH+x}" ] && export MYSHELLCONFIG_GIT_BRANCH=master [ -z "${MYSHELLCONFIG_GIT_BRANCH+x}" ] && export MYSHELLCONFIG_GIT_BRANCH=master
# If TAG is set, checkout is always headless. # If TAG is set, checkout is always headless.
[ -z "${MYSHELLCONFIG_GIT_TAG:+x}" ] || { export MYSHELLCONFIG_GIT_BRANCH=${MYSHELLCONFIG_GIT_TAG}; export MYSHELLCONFIG_GIT_CHECKOUTSCRIPT_OPTIONS=""; } [ -z "${MYSHELLCONFIG_GIT_TAG:+x}" ] || { export MYSHELLCONFIG_GIT_BRANCH=${MYSHELLCONFIG_GIT_TAG}; export MYSHELLCONFIG_GIT_CHECKOUTSCRIPT_OPTIONS="-h"; }
#GIT_SSH_PATH="/srv/repos" #GIT_SSH_PATH="/srv/repos"