mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-10-01 18:16:18 +02:00
Compare commits
2 Commits
rafaelff/p
...
e440f0e01a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
e440f0e01a | ||
![]() |
0712c4fe2e |
@@ -3,7 +3,7 @@ pkgctl-auth(1)
|
||||
|
||||
Name
|
||||
----
|
||||
pkgctl-auth - Authenticate with services like GitLab.
|
||||
pkgctl-auth - Authenticate with serivces like GitLab.
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
@@ -15,8 +15,8 @@ check_root() {
|
||||
local orig_argv=("$@")
|
||||
|
||||
(( EUID == 0 )) && return
|
||||
if type -P sudo >/dev/null; then
|
||||
exec sudo --preserve-env="${keepenv}" -- "${orig_argv[@]}"
|
||||
if type -P run0 && type -P pkexec >/dev/null; then
|
||||
exec run0 -- "${orig_argv[@]}"
|
||||
else
|
||||
exec su root -c "$(printf ' %q' "${orig_argv[@]}")"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user