1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Merge pull request #3285 from holta/iiab-apps-to-be-installed_double_brackets_safer

/usr/bin/iiab-apps-to-be-installed: double square brackets (safer for string compare)
This commit is contained in:
A Holt 2022-07-04 10:55:59 -04:00 committed by GitHub
commit 939e34dc65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,9 +18,9 @@ iiab_var_value() {
grep -hro '[A-Za-z_][A-Za-z_]*_installed: True' --exclude-dir=0-DEPRECATED-ROLES /opt/iiab/iiab/roles | sed 's/_installed: True$//' | sort | uniq > /tmp/iiab-apps-list
while read app; do
if [ $app == "calibre-web" ]; then
if [[ $app == "calibre-web" ]]; then
app=calibreweb
elif [ $app == "osm-vector-maps" ]; then
elif [[ $app == "osm-vector-maps" ]]; then
app=osm_vector_maps
fi