diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2018-06-12 13:28:51 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-08-10 07:20:40 +0200 |
commit | 2d8d8af915d352b61178a981603360c27a3899f2 (patch) | |
tree | 70ea242e0c91924fb6cd7fcb6e0987cb0f3413fb /scripts/pacman-db-upgrade.sh.in | |
parent | 7d05ffceaf9161a6572505d25b5017e1eb33bf0e (diff) | |
download | pacman-2d8d8af915d352b61178a981603360c27a3899f2.tar.gz pacman-2d8d8af915d352b61178a981603360c27a3899f2.tar.xz |
scripts: pass on options such as set -x to child processes
When re-running makepkg for fakeroot, if `bash -x makepkg` was used this
is lost. Fix by encoding the current set of options explicitly in the
invocation, both for makepkg and for the wrapper used to test scripts
inside the source tree.
Also change to use ${BASH_SOURCE[0]} instead of $0 as the latter can be
anything the parent process wants, while the former is explicitly set by
bash itself to the filepath of the script.
See http://mywiki.wooledge.org/BashFAQ/028
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/pacman-db-upgrade.sh.in')
0 files changed, 0 insertions, 0 deletions