[variants] Pacman wrapper do not trigger on -Q and -F
This commit is contained in:
parent
59a7dd580d
commit
1346416cce
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue