Add checkout bin to sudoers path
This commit is contained in:
@@ -60,6 +60,12 @@ grep -Fx $'sudo\ttee\t/etc/omarchy.conf' "$log_file" >/dev/null ||
|
||||
fail "dev unlink writes the package path without rebooting" "$(cat "$log_file")"
|
||||
[[ $(<"$conf_file") == 'export OMARCHY_PATH="/usr/share/omarchy"' ]] ||
|
||||
fail "dev unlink writes the package path guard" "$(<"$conf_file")"
|
||||
|
||||
# Left behind, it keeps sudo running a checkout nothing else points at.
|
||||
grep -Fx $'sudo\trm\t-f\t/etc/sudoers.d/omarchy-dev-path' "$log_file" >/dev/null ||
|
||||
fail "dev unlink drops the sudo secure_path drop-in" "$(cat "$log_file")"
|
||||
pass "dev unlink drops the sudo secure_path drop-in"
|
||||
|
||||
if grep -Eq '^(gum|reboot)' "$log_file"; then
|
||||
fail "dev unlink --no-reboot skips the reboot prompt" "$(cat "$log_file")"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user