mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 01:46:19 +02:00
Compare commits
2 Commits
708557c68a
...
master
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3f0ebbc6d2 | ||
![]() |
fc56ebedf3 |
@@ -150,6 +150,7 @@ _pkgctl_cmds=(
|
||||
db
|
||||
diff
|
||||
issue
|
||||
license
|
||||
release
|
||||
repo
|
||||
search
|
||||
|
@@ -15,8 +15,8 @@ check_root() {
|
||||
local orig_argv=("$@")
|
||||
|
||||
(( EUID == 0 )) && return
|
||||
if type -P run0 && type -P pkexec >/dev/null; then
|
||||
exec run0 -- "${orig_argv[@]}"
|
||||
if type -P sudo >/dev/null; then
|
||||
exec sudo --preserve-env="${keepenv}" -- "${orig_argv[@]}"
|
||||
else
|
||||
exec su root -c "$(printf ' %q' "${orig_argv[@]}")"
|
||||
fi
|
||||
|
@@ -188,6 +188,7 @@ path = [
|
||||
"README.md",
|
||||
"keys/**",
|
||||
".SRCINFO",
|
||||
".gitignore",
|
||||
".nvchecker.toml",
|
||||
"*.install",
|
||||
"*.sysusers",
|
||||
|
Reference in New Issue
Block a user