Skip to content

Commit

Permalink
Support APPNAME__INSTANCENAME in installed_apps, enabled_apps a…
Browse files Browse the repository at this point in the history
…nd` disabled_apps`
  • Loading branch information
CLHatch committed Feb 1, 2025
1 parent 1de9505 commit aa3d29c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .scripts/disabled_apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ set -Eeuo pipefail
IFS=$'\n\t'

disabled_apps() {
#grep --color=never -o -P '^\s*\K([A-Z][A-Z0-9]*(__[A-Z0-9]+)?)(?=_ENABLED='"'"'?false'"'"'?$)' "${COMPOSE_ENV}"
grep --color=never -o -P '^\s*\K[A-Z][A-Z0-9]*(?=__ENABLED\s*='"'"'?false'"'"'?$)' "${COMPOSE_ENV}" | sort || true
grep --color=never -o -P '^[A-Z][A-Z0-9]*(__[A-Z0-9]+)?(?=__ENABLED='"'"'?false'"'"'?)' "${COMPOSE_ENV}" | sort || true
}

test_disabled_apps() {
Expand Down
2 changes: 1 addition & 1 deletion .scripts/enabled_apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ IFS=$'\n\t'

enabled_apps() {
#grep --color=never -o -P '^\s*\K([A-Z][A-Z0-9]*(__[A-Z0-9]+)?)(?=_ENABLED='"'"'?true'"'"'?$)' "${COMPOSE_ENV}"
grep --color=never -o -P '^\s*\K[A-Z][A-Z0-9]*(?=__ENABLED\s*='"'"'?true'"'"'?$)' "${COMPOSE_ENV}" | sort || true
grep --color=never -o -P '^[A-Z][A-Z0-9]*(__[A-Z0-9]+)?(?=__ENABLED='"'"'?true'"'"'?)' "${COMPOSE_ENV}" | sort || true
}

test_enabled_apps() {
Expand Down
3 changes: 1 addition & 2 deletions .scripts/installed_apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ set -Eeuo pipefail
IFS=$'\n\t'

installed_apps() {
#grep --color=never -o -P '^\s*\K([A-Z][A-Z0-9]*(__[A-Z0-9]+)?)(?==)' "${COMPOSE_ENV}"
grep --color=never -o -P '^\s*\K[A-Z][A-Z0-9]*(?=__ENABLED\s*=)' "${COMPOSE_ENV}" | sort || true
grep --color=never -o -P '^[A-Z][A-Z0-9]*(__[A-Z0-9]+)?(?=__ENABLED\s*=)' "${COMPOSE_ENV}" | sort || true
}

test_installed_apps() {
Expand Down

0 comments on commit aa3d29c

Please sign in to comment.