diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2018-06-12 07:28:51 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-08-10 15:20:40 +1000 |
commit | 2d8d8af915d352b61178a981603360c27a3899f2 (patch) | |
tree | 70ea242e0c91924fb6cd7fcb6e0987cb0f3413fb /etc/.gitignore | |
parent | 7d05ffceaf9161a6572505d25b5017e1eb33bf0e (diff) | |
download | 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 'etc/.gitignore')
0 files changed, 0 insertions, 0 deletions