omacom/omarchy#13362 sets HOOKS per platform inside 00-omarchy-hooks.conf, with no column-0 HOOKS= line, so the aarch64 build failed on it; settings-dev tracks quattro automatically and would break as soon as it lands. Wrap only a single-line HOOKS=(...), refuse any other column-0 HOOKS=, then source the shipped files onto a Mac line and a stock line: the Mac line must come through unchanged and the stock one must not. Back up 00-omarchy-hooks.conf when it ships, and refuse it without the omarchy-hw-platform copy it asks. The test now uses the real v4.0.4 hooks file, #13362's two files and omarchy-mac-boot's 90-94 fragments, and covers upgrades over a hand-restored file.
19 lines
664 B
Plaintext
19 lines
664 B
Plaintext
# Generated by the Omarchy Apple Silicon image builder.
|
|
_omarchy_asahi_hooks=()
|
|
_omarchy_asahi_added=false
|
|
for _omarchy_asahi_hook in "${HOOKS[@]}"; do
|
|
if [[ $_omarchy_asahi_hook == asahi ]]; then
|
|
_omarchy_asahi_added=true
|
|
fi
|
|
if [[ $_omarchy_asahi_hook == filesystems && $_omarchy_asahi_added == false ]]; then
|
|
_omarchy_asahi_hooks+=(asahi omarchy-vendorfw)
|
|
_omarchy_asahi_added=true
|
|
fi
|
|
_omarchy_asahi_hooks+=("$_omarchy_asahi_hook")
|
|
done
|
|
if [[ $_omarchy_asahi_added == false ]]; then
|
|
_omarchy_asahi_hooks+=(asahi omarchy-vendorfw)
|
|
fi
|
|
HOOKS=("${_omarchy_asahi_hooks[@]}")
|
|
unset _omarchy_asahi_hooks _omarchy_asahi_hook _omarchy_asahi_added
|