Drop OMARCHY_PATH fallback and conf reading in channel detection

This commit is contained in:
David Heinemeier Hansson
2026-06-29 11:18:33 -05:00
parent 987addd7da
commit 4ab3377950
2 changed files with 6 additions and 20 deletions
+1 -9
View File
@@ -4,18 +4,10 @@
set -euo pipefail
conf=${OMARCHY_CONFIG_FILE:-/etc/omarchy.conf}
omarchy_path=${OMARCHY_PATH:-/usr/share/omarchy}
if [[ -r $conf ]]; then
configured_path=$(bash -c 'source "$1"; printf "%s\n" "${OMARCHY_PATH:-}"' bash "$conf" 2>/dev/null || true)
[[ -n $configured_path ]] && omarchy_path="$configured_path"
fi
# Dev is a linked source checkout: OMARCHY_PATH points somewhere other than
# the package-backed install at /usr/share/omarchy. This takes precedence over
# the package channels, since the checkout overrides whatever is installed.
if [[ $omarchy_path != "/usr/share/omarchy" ]]; then
if [[ $OMARCHY_PATH != "/usr/share/omarchy" ]]; then
echo dev
exit 0
fi