Fix install script ignoring theme and profile parameter

Fixes #193
This commit is contained in:
dyegoaurelio 2021-05-11 22:23:48 -03:00 committed by GitHub
parent e689e01f5b
commit 5b3db78684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 4 deletions

View File

@ -77,10 +77,18 @@ PROFILES_PATHS=($(grep -E "^Path=" "${PROFILES_FILE}" | tr -d '\n' | sed -e 's/\
PROFILES_PATHS+=:: PROFILES_PATHS+=::
PROFILES_ARRAY=() PROFILES_ARRAY=()
while [[ $PROFILES_PATHS ]]; do if [ "${PROFILENAME}" != "" ];
then
echo "Using ${PROFILENAME} theme"
PROFILES_ARRAY+=${PROFILENAME}
else
echo "Finding all avaliable themes";
while [[ $PROFILES_PATHS ]]; do
PROFILES_ARRAY+=( "${PROFILES_PATHS%%::*}" ) PROFILES_ARRAY+=( "${PROFILES_PATHS%%::*}" )
PROFILES_PATHS=${PROFILES_PATHS#*::} PROFILES_PATHS=${PROFILES_PATHS#*::}
done done
fi
if [ ${#PROFILES_ARRAY[@]} -eq 0 ]; then if [ ${#PROFILES_ARRAY[@]} -eq 0 ]; then