aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Lohnau <alexander.lohnau@gmx.de>2021-10-04 06:37:06 +0200
committerAlexander Lohnau <alexander.lohnau@gmx.de>2021-10-24 18:50:56 +0200
commit60755c8c38f6645dc33ed7acc345035af26e0045 (patch)
treed7ceaa846bc0b56d6a3eef460f3e1b6025ba41c9
parent0516940f89f0b30d40e86c92b2876398de14cdb0 (diff)
downloadextra-cmake-modules-60755c8c38f6645dc33ed7acc345035af26e0045.tar.gz
extra-cmake-modules-60755c8c38f6645dc33ed7acc345035af26e0045.tar.bz2
GIT_SILENT Fix check in prefix.sh.fish script if ENV vars are already set
-rw-r--r--kde-modules/prefix.sh.fish.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/kde-modules/prefix.sh.fish.cmake b/kde-modules/prefix.sh.fish.cmake
index 435d6c61..d59c1b87 100644
--- a/kde-modules/prefix.sh.fish.cmake
+++ b/kde-modules/prefix.sh.fish.cmake
@@ -6,12 +6,12 @@ set PATH "@KDE_INSTALL_FULL_BINDIR@:$PATH"
# LD_LIBRARY_PATH only needed if you are building without rpath
# set -x LD_LIBRARY_PATH "@KDE_INSTALL_FULL_LIBDIR@:$LD_LIBRARY_PATH"
-if set -q XDG_DATA_DIRS
+if test -z "$XDG_DATA_DIRS"
set -x --path XDG_DATA_DIRS /usr/local/share/ /usr/share/
end
set -x --path XDG_DATA_DIRS "@KDE_INSTALL_FULL_DATADIR@" $XDG_DATA_DIRS
-if set -q XDG_CONFIG_DIRS
+if test -z "$XDG_CONFIG_DIRS"
set -x --path XDG_CONFIG_DIRS /etc/xdg
end
set -x --path XDG_CONFIG_DIRS "@KDE_INSTALL_FULL_CONFDIR@" $XDG_CONFIG_DIRS