Explorar o código

Fix wrong env

Joachim M. Giæver %!s(int64=2) %!d(string=hai) anos
pai
achega
66fbf10077
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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