Update code.sh

Co-Authored-By: Filippe LeMarchand <gasinvein@gmail.com>
This commit is contained in:
eszlari
2020-03-03 20:31:41 +01:00
co-authored by Filippe LeMarchand
parent d0f17bd46c
commit 449e76e9c1
+5 -1
View File
@@ -12,7 +12,11 @@ fi
IFS=',' read -ra SDK <<< "$FLATPAK_ENABLE_SDK" IFS=',' read -ra SDK <<< "$FLATPAK_ENABLE_SDK"
for i in "${SDK[@]}"; do for i in "${SDK[@]}"; do
if [[ -d /usr/lib/sdk/$i ]]; then if [[ -d /usr/lib/sdk/$i ]]; then
. /usr/lib/sdk/$i/enable.sh if [[ -f /usr/lib/sdk/$i/enable.sh ]]; then
. /usr/lib/sdk/$i/enable.sh
else
export PATH=$PATH:/usr/lib/sdk/$i/bin
fi
fi fi
done done