Drop OMARCHY_PATH fallback and conf reading in channel detection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user