Skip to content
Snippets Groups Projects
Commit a249684f authored by Simon McVittie's avatar Simon McVittie
Browse files

Cope with unset SYSTEM_PATH, SYSTEM_LD_LIBRARY_PATH

parent 0432d57a
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ unset LD_PRELOAD ...@@ -39,7 +39,7 @@ unset LD_PRELOAD
caller_ld_library_path="${LD_LIBRARY_PATH:-}" caller_ld_library_path="${LD_LIBRARY_PATH:-}"
if [ -n "$SYSTEM_LD_LIBRARY_PATH" ]; then if [ -n "${SYSTEM_LD_LIBRARY_PATH-}" ]; then
export LD_LIBRARY_PATH="$SYSTEM_LD_LIBRARY_PATH" export LD_LIBRARY_PATH="$SYSTEM_LD_LIBRARY_PATH"
else else
unset LD_LIBRARY_PATH unset LD_LIBRARY_PATH
...@@ -48,7 +48,7 @@ fi ...@@ -48,7 +48,7 @@ fi
caller_path="${PATH:-"${default_path}"}" caller_path="${PATH:-"${default_path}"}"
default_path="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" default_path="/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
if [ -n "$SYSTEM_PATH" ]; then if [ -n "${SYSTEM_PATH-}" ]; then
export PATH="$SYSTEM_PATH" export PATH="$SYSTEM_PATH"
else else
export PATH="$default_path" export PATH="$default_path"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment