diff --git a/bashrc_add b/bashrc_add index d5bb109..2b4a2c0 100755 --- a/bashrc_add +++ b/bashrc_add @@ -8,7 +8,7 @@ if [ -z ${SSHS+x} ]; then SSHS=false;fi # https://guide.bash.academy/expansions/ # https://www.tldp.org/LDP/abs/html/refcards.html#AEN22473 if [[ $- = *i* ]] ; then - #echo "interactive shell" >&2 + echo "interactive shell" >&2 # define variables # default timeouts definted in myshellconfig_load_default @@ -107,5 +107,7 @@ EOF --8<--- end ---------------- $(date) ---------------8<-- EOF +else + echo "non-interactive shell" >&2 fi diff --git a/myshell_git_sync b/myshell_git_sync index ba9fd49..908ae46 100644 --- a/myshell_git_sync +++ b/myshell_git_sync @@ -77,7 +77,7 @@ if ! $SSHS; then [ -z "${MYSHELLCONFIG_GIT_REMOTE_NAME+x}" ] && export MYSHELLCONFIG_GIT_REMOTE_NAME=origin [ -z "${MYSHELLCONFIG_GIT_BRANCH+x}" ] && export MYSHELLCONFIG_GIT_BRANCH=master # 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"