1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

iiab-apps-to-be-installed: double brackets (safer for string compare)

This commit is contained in:
A Holt 2022-07-04 10:53:06 -04:00 committed by GitHub
parent b12826d7af
commit b56e4d5079
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 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 while read app; do
if [ $app == "calibre-web" ]; then if [[ $app == "calibre-web" ]]; then
app=calibreweb app=calibreweb
elif [ $app == "osm-vector-maps" ]; then elif [[ $app == "osm-vector-maps" ]]; then
app=osm_vector_maps app=osm_vector_maps
fi fi