We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa9beb5 commit 9c0e29aCopy full SHA for 9c0e29a
src/downgrade
@@ -583,7 +583,7 @@ if ((!DOWNGRADE_LIB)); then
583
done
584
585
# Check to ensure downgrade running as root
586
- if ((UID)); then
+ if ((EUID)); then
587
{
588
gettext "downgrade must be run as root"
589
echo
src/pacignore
@@ -158,7 +158,7 @@ parse_options() {
158
pkgs=("$@")
159
160
# Check if run as root for `add` or `rm` subcommands
161
- if ((UID)) && [[ "$PACIGNORE_SUBCOMMAND" =~ ^(add|rm)$ ]]; then
+ if ((EUID)) && [[ "$PACIGNORE_SUBCOMMAND" =~ ^(add|rm)$ ]]; then
162
163
gettext "pacignore must be run as root for this subcommand"
164
printf "\n"
0 commit comments