From 9981c714f632fe755f9ebc5aff3b1b7bf6c142d2 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Mon, 4 Mar 2024 05:59:32 +0100 Subject: Merge pull request #9425 from iFreilicht/fix-unbound-variable-errors Fix "unbound variable" errors in bash (cherry picked from commit 9ad9e988b83a9a9a9748034ac77e743b2cab20e6) Change-Id: Ib7c8cb303f34104b9785c9376225f93174f3dae7 --- scripts/nix-profile-daemon.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/nix-profile-daemon.sh.in') diff --git a/scripts/nix-profile-daemon.sh.in b/scripts/nix-profile-daemon.sh.in index c63db4648..d256b24ed 100644 --- a/scripts/nix-profile-daemon.sh.in +++ b/scripts/nix-profile-daemon.sh.in @@ -31,7 +31,7 @@ fi export NIX_PROFILES="@localstatedir@/nix/profiles/default $NIX_LINK" # Populate bash completions, .desktop files, etc -if [ -z "$XDG_DATA_DIRS" ]; then +if [ -z "${XDG_DATA_DIRS-}" ]; then # According to XDG spec the default is /usr/local/share:/usr/share, don't set something that prevents that default export XDG_DATA_DIRS="/usr/local/share:/usr/share:$NIX_LINK/share:/nix/var/nix/profiles/default/share" else -- cgit v1.2.3