From 043e51479bf817ed5aa07319a1773e081e7c4fc0 Mon Sep 17 00:00:00 2001 From: gasinvein Date: Wed, 18 Mar 2020 16:02:32 +0300 Subject: [PATCH] Add option to enable all SDK extensions --- code.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code.sh b/code.sh index 7c65519..0ea2f50 100755 --- a/code.sh +++ b/code.sh @@ -9,7 +9,15 @@ if [ ! -f ${FIRST_RUN} ]; then touch ${FIRST_RUN} fi -IFS=',' read -ra SDK <<< "$FLATPAK_ENABLE_SDK" +if [ "$FLATPAK_ENABLE_SDK" = "*" ]; then + SDK=() + for d in /usr/lib/sdk/*; do + SDK+=("${d##*/}") + done +else + IFS=',' read -ra SDK <<< "$FLATPAK_ENABLE_SDK" +fi + for i in "${SDK[@]}"; do if [[ -d /usr/lib/sdk/$i ]]; then if [[ -f /usr/lib/sdk/$i/enable.sh ]]; then