Browse Source

Fix wrong env

Joachim M. Giæver 2 years ago
parent
commit
66fbf10077
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/config/plug-bin

+ 2 - 2
src/config/plug-bin

@@ -7,7 +7,7 @@ if [ $? -eq 0 ]; then
 
     if [ "${#PATHS[@]}" -ne 0 ]; then
         for TPATH in "${PATHS[@]}"; do
-            PATH="${PATH}:${TPATH}"
+            export PATH="${PATH}:${TPATH}"
         done
     fi
 fi
@@ -17,7 +17,7 @@ readarray -d '' PATHS < <(find "$SNAP/usr/lib/$(uname -m)-linux-gnu" -maxdepth 1
 
 if [ "${#PATHS[@]}" -ne 0 ]; then
     for TPATH in "${PATHS[@]}"; do
-        PATH="${PATH}:${TPATH}"
+        export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${TPATH}"
     done
 fi