Push elements into bash array instead of string concat

This commit is contained in:
Ariel Juodziukynas
2023-06-11 12:44:09 -03:00
parent 40513adc42
commit a850c9bb5c

View File

@@ -33,11 +33,11 @@ readonly WIDEVINE_MANIFEST_NAME='manifest.json'
OPERA_VERSIONS=() OPERA_VERSIONS=()
if [ -x "$(command -v opera)" ]; then if [ -x "$(command -v opera)" ]; then
OPERA_VERSIONS+="opera" OPERA_VERSIONS+=("opera")
fi fi
if [ -x "$(command -v opera-beta)" ]; then if [ -x "$(command -v opera-beta)" ]; then
OPERA_VERSIONS+="opera-beta" OPERA_VERSIONS+=("opera-beta")
fi fi
for opera in ${OPERA_VERSIONS[@]}; do for opera in ${OPERA_VERSIONS[@]}; do