Fix error when sourcing profile script
With the "set -e" property set, a failure when sourcing /etc/profile can cause makepkg to exit without error message. The bash-completion package activates this bug. Fixes FS#11179. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
57bd8974c7
commit
a23fc08758
|
@ -341,7 +341,10 @@ handledeps() {
|
|||
fi
|
||||
|
||||
# we might need the new system environment
|
||||
# set -e can cause problems during sourcing profile scripts
|
||||
set +e
|
||||
source /etc/profile &>/dev/null
|
||||
set -e
|
||||
|
||||
return $R_DEPS_SATISFIED
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue