about summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-11-07 15:20:02 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2019-11-08 13:28:58 -0500
commit12a85a7046503e6ff602663a1d054407a4e3f184 (patch)
tree67f6b689127c252c8b5fc593b133af1768bb632a /pkgs/development/libraries/SDL
parentbeda0365a64f025c26212cb69ffbb09f3ef329fd (diff)
SDL, SDL2: SDL{,2}_PATH may be undefined
Diffstat (limited to 'pkgs/development/libraries/SDL')
-rw-r--r--pkgs/development/libraries/SDL/setup-hook.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/SDL/setup-hook.sh b/pkgs/development/libraries/SDL/setup-hook.sh
index 20382f18f529a..32a7d0d955482 100644
--- a/pkgs/development/libraries/SDL/setup-hook.sh
+++ b/pkgs/development/libraries/SDL/setup-hook.sh
@@ -1,6 +1,6 @@
 addSDLPath () {
   if [ -e "$1/include/SDL" ]; then
-    export SDL_PATH="$SDL_PATH $1/include/SDL"
+    export SDL_PATH="${SDL_PATH-}${SDL_PATH:+ }$1/include/SDL"
   fi
 }