avoid duplicate environment variables

This commit is contained in:
Patrick Schleizer 2023-10-12 11:37:01 -04:00
parent e96e6aa38e
commit 2d45241084
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -6,7 +6,9 @@
if [ -z "$XDG_CONFIG_DIRS" ]; then
XDG_CONFIG_DIRS=/etc/xdg
fi
if ! echo "$XDG_CONFIG_DIRS" | grep --quiet /usr/share/security-misc/ ; then
export XDG_CONFIG_DIRS=/usr/share/security-misc/:$XDG_CONFIG_DIRS
fi
if [ -x /usr/libexec/security-misc/panic-on-oops ]; then
sudo --non-interactive /usr/libexec/security-misc/panic-on-oops