From 449e76e9c140852bcb266a50c0555ecdb1f119a3 Mon Sep 17 00:00:00 2001 From: eszlari Date: Tue, 3 Mar 2020 20:28:54 +0100 Subject: [PATCH] Update code.sh Co-Authored-By: Filippe LeMarchand --- code.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code.sh b/code.sh index 3f7eda5..7c65519 100755 --- a/code.sh +++ b/code.sh @@ -12,7 +12,11 @@ fi IFS=',' read -ra SDK <<< "$FLATPAK_ENABLE_SDK" for i in "${SDK[@]}"; do 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 done