[variants] Pacman wrapper do not trigger on -Q and -F

This commit is contained in:
Dennis ten Hoove 2024-08-23 13:30:10 +02:00
parent 59a7dd580d
commit 1346416cce
No known key found for this signature in database
GPG key ID: 2BA91DC2563B83D1
3 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
# Elevate permissions to root
[[ $EUID -eq 0 ]] || exec sudo bash $0 $@
[[ $@ =~ (-r|--root) ]] && no_check=1 # Do not check if custom root is defined
[[ $@ =~ (-r|--root|-Q*|-F*) ]] && no_check=1 # Do not check if custom root is defined
[[ $LD_LIBRARY_PATH =~ (libfakeroot) ]] && no_check=1 # Do not check if running as fakeroot
if [[ ! $no_check ]]; then

View file

@ -3,7 +3,7 @@
# Elevate permissions to root
[[ $EUID -eq 0 ]] || exec sudo bash $0 $@
[[ $@ =~ (-r|--root) ]] && no_check=1 # Do not check if custom root is defined
[[ $@ =~ (-r|--root|-Q*|-F*) ]] && no_check=1 # Do not check if custom root is defined
[[ $LD_LIBRARY_PATH =~ (libfakeroot) ]] && no_check=1 # Do not check if running as fakeroot
if [[ ! $no_check ]]; then

View file

@ -3,7 +3,7 @@
# Elevate permissions to root
[[ $EUID -eq 0 ]] || exec sudo bash $0 $@
[[ $@ =~ (-r|--root) ]] && no_check=1 # Do not check if custom root is defined
[[ $@ =~ (-r|--root|-Q*|-F*) ]] && no_check=1 # Do not check if custom root is defined
[[ $LD_LIBRARY_PATH =~ (libfakeroot) ]] && no_check=1 # Do not check if running as fakeroot
if [[ ! $no_check ]]; then