Bind protected update commands to their source root

This commit is contained in:
Afonso Oliveira committed 2026-09-07 17:27:04 +01:00
1 parent 5b692c5b30
commit f37c73fa20
6 files changed
+84 -1

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ source "${BASH_SOURCE[0]%/*}/omarchy-security-functions" || exit 126
omarchy_security_require_privileged_bash_startup || exit 126
set -e
omarchy_security_sanitize_bash_environment "$0" "$@"
omarchy_security_require_source_root "$0"
# Logging and lock acquisition re-exec this command with a sanitized PATH.
# Preserve the caller's path only for the later unprivileged hook/mise phases.
user_path=${OMARCHY_UPDATE_USER_PATH:-$PATH}