From: Tobias Klauser Date: Wed, 11 Dec 2024 14:10:39 +0000 (+0100) Subject: profile.d: don't bail if $SHELL_* variables are unset X-Git-Tag: v258-rc1~1908 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12e33d332b3f8754f4d5d0d21d5d3f0de8adc54c;p=thirdparty%2Fsystemd.git profile.d: don't bail if $SHELL_* variables are unset If - for whatever reason - a script uses set -u (nounset) and includes /etc/profile.d/70-systemd-shell-extra.sh (e.g. transitively via /etc/profile) the script would fail with: /etc/profile.d/70-systemd-shell-extra.sh: line 15: SHELL_PROMPT_PREFIX: unbound variable For example: $ cat > foo.sh <