Add option to enable all SDK extensions

This commit is contained in:
gasinvein
2020-03-18 16:02:32 +03:00
committed by eszlari
parent f63f4d6f26
commit 043e51479b
+9 -1
View File
@@ -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