Harden Firefox policy dirs even when the theme refresh fails

This commit is contained in:
Ryan Hughes
2026-08-28 19:00:03 -04:00
parent 5925929cb6
commit 6b10dbf191
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -9,8 +9,11 @@ for dir in "${BROWSER_POLICY_MANAGED_DIRS[@]}"; do
repaired=1
done
# Repainting the policy color is cosmetic and the next theme change redoes it.
# Under bash -euo pipefail a failure here would abort the migration before the
# Firefox directories below are hardened, and the marker would never be written.
if (( repaired )); then
omarchy-theme-set-browser
omarchy-theme-set-browser || true
fi
for dir in "${BROWSER_POLICY_FIREFOX_DIRS[@]}"; do