filesystem: minor fix (#1557)
Minor fix, I'm guessing this was the original intention.
This commit is contained in:
parent
24be418643
commit
4ae39f3c2e
@ -252,8 +252,8 @@ maybe_create_home ()
|
||||
# CHERE_INVOKING=1; exec /usr/bin/bash --login -i"
|
||||
#
|
||||
# Make sure we start in home if invoked without -here option and not in a nested shell
|
||||
if [ ! -z "${CHERE_INVOKING}" ]; then
|
||||
CHERE_INVOKING_VISIBLE_FOR_USER=CHERE_INVOKING
|
||||
if [ -n "${CHERE_INVOKING}" ]; then
|
||||
CHERE_INVOKING_VISIBLE_FOR_USER="${CHERE_INVOKING}"
|
||||
unset CHERE_INVOKING
|
||||
elif [ ${SHLVL:-0} -le 1 ]; then
|
||||
cd "${HOME}" || echo "WARNING: Failed attempt to cd into ${HOME}!"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user