Skip to content

Commit d617f61

Browse files
Fix CI shellcheck SC2016 in theme runtime guard
1 parent 608cb0f commit d617f61

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/theme_runtime_guard.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,17 @@ require_contains "${SETTINGS_CSS}" '--fvplus-settings-accent:' 'settings tokeniz
6767
require_absent "${DOCKER_JS}" '\.css\(\s*["'"'"']color["'"'"']\s*,\s*statusColors' 'docker inline status color painting'
6868
require_absent "${VM_JS}" '\.css\(\s*["'"'"']color["'"'"']\s*,\s*statusColors' 'vm inline status color painting'
6969

70+
# shellcheck disable=SC2016
7071
require_contains "${STYLES_CUSTOM_PHP}" 'realpath\(' 'styles loader realpath'
72+
# shellcheck disable=SC2016
7173
require_contains "${STYLES_CUSTOM_PHP}" 'strpos\(\$resolved,\s*\$baseDir\s*\.\s*'\''/'\''\)\s*!==\s*0' 'styles loader path boundary check'
74+
# shellcheck disable=SC2016
7275
require_contains "${STYLES_CUSTOM_PHP}" 'autov\(\$resolved\)' 'styles loader autov resolved path'
76+
# shellcheck disable=SC2016
7377
require_contains "${SCRIPTS_CUSTOM_PHP}" 'realpath\(' 'scripts loader realpath'
78+
# shellcheck disable=SC2016
7479
require_contains "${SCRIPTS_CUSTOM_PHP}" 'strpos\(\$resolved,\s*\$baseDir\s*\.\s*'\''/'\''\)\s*!==\s*0' 'scripts loader path boundary check'
80+
# shellcheck disable=SC2016
7581
require_contains "${SCRIPTS_CUSTOM_PHP}" 'autov\(\$resolved\)' 'scripts loader autov resolved path'
7682

7783
echo "Theme runtime guard passed."

0 commit comments

Comments
 (0)