parent
e689e01f5b
commit
5b3db78684
|
@ -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}" != "" ];
|
||||||
PROFILES_ARRAY+=( "${PROFILES_PATHS%%::*}" )
|
then
|
||||||
PROFILES_PATHS=${PROFILES_PATHS#*::}
|
echo "Using ${PROFILENAME} theme"
|
||||||
done
|
PROFILES_ARRAY+=${PROFILENAME}
|
||||||
|
else
|
||||||
|
echo "Finding all avaliable themes";
|
||||||
|
while [[ $PROFILES_PATHS ]]; do
|
||||||
|
PROFILES_ARRAY+=( "${PROFILES_PATHS%%::*}" )
|
||||||
|
PROFILES_PATHS=${PROFILES_PATHS#*::}
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ ${#PROFILES_ARRAY[@]} -eq 0 ]; then
|
if [ ${#PROFILES_ARRAY[@]} -eq 0 ]; then
|
||||||
|
|
Loading…
Reference in New Issue