mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
bacman: pass unshifted arguments to fakeroot
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
3b3152fc50
commit
ec15e859a4
@ -27,6 +27,8 @@ shopt -s nullglob
|
|||||||
declare -r myname='bacman'
|
declare -r myname='bacman'
|
||||||
declare -r myver='@PACKAGE_VERSION@'
|
declare -r myver='@PACKAGE_VERSION@'
|
||||||
USE_COLOR='y'
|
USE_COLOR='y'
|
||||||
|
# Required for fakeroot because options are shifted off the array.
|
||||||
|
ARGS=("$@")
|
||||||
|
|
||||||
m4_include(../scripts/library/output_format.sh)
|
m4_include(../scripts/library/output_format.sh)
|
||||||
|
|
||||||
@ -71,7 +73,7 @@ if (( EUID )); then
|
|||||||
if [[ -f /usr/bin/fakeroot ]]; then
|
if [[ -f /usr/bin/fakeroot ]]; then
|
||||||
msg "Entering fakeroot environment"
|
msg "Entering fakeroot environment"
|
||||||
export INFAKEROOT="1"
|
export INFAKEROOT="1"
|
||||||
/usr/bin/fakeroot -u -- "$0" "$@"
|
/usr/bin/fakeroot -u -- "$0" "${ARGS[@]}"
|
||||||
exit $?
|
exit $?
|
||||||
else
|
else
|
||||||
warning "installing fakeroot or running $myname as root is required to"
|
warning "installing fakeroot or running $myname as root is required to"
|
||||||
|
Loading…
Reference in New Issue
Block a user