Add check against executing bashrcd twice
This commit is contained in:
parent
d59568b1ea
commit
7d827a82da
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,12 @@
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
|
# Cancel execution of system-wide punktdateien-bashrc if user-wide installation is detected
|
||||||
|
if [ -n "${BASHRCD_SYSTEM}" ] && [ -d "${HOME}/.bashrc.d" ] && [ -f "${HOME}/.bashrc.d/startup.sh" ]; then
|
||||||
|
set +eo pipefail
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Define variables
|
# Define variables
|
||||||
export "BASHRCD_FALLBACK=exec env --ignore-environment bash --norc --noprofile"
|
export "BASHRCD_FALLBACK=exec env --ignore-environment bash --norc --noprofile"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue