mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-25 10:35:32 +07:00
avoid duplicate environment variables
This commit is contained in:
parent
e96e6aa38e
commit
2d45241084
@ -6,7 +6,9 @@
|
|||||||
if [ -z "$XDG_CONFIG_DIRS" ]; then
|
if [ -z "$XDG_CONFIG_DIRS" ]; then
|
||||||
XDG_CONFIG_DIRS=/etc/xdg
|
XDG_CONFIG_DIRS=/etc/xdg
|
||||||
fi
|
fi
|
||||||
|
if ! echo "$XDG_CONFIG_DIRS" | grep --quiet /usr/share/security-misc/ ; then
|
||||||
export XDG_CONFIG_DIRS=/usr/share/security-misc/:$XDG_CONFIG_DIRS
|
export XDG_CONFIG_DIRS=/usr/share/security-misc/:$XDG_CONFIG_DIRS
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -x /usr/libexec/security-misc/panic-on-oops ]; then
|
if [ -x /usr/libexec/security-misc/panic-on-oops ]; then
|
||||||
sudo --non-interactive /usr/libexec/security-misc/panic-on-oops
|
sudo --non-interactive /usr/libexec/security-misc/panic-on-oops
|
||||||
|
Loading…
Reference in New Issue
Block a user