makepkg: save and restore shopts when sourcing /etc/profile
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
468270ce4f
commit
31091963ed
|
@ -473,7 +473,11 @@ handle_deps() {
|
|||
fi
|
||||
|
||||
# we might need the new system environment
|
||||
# save our shell options and turn off extglob
|
||||
local shellopts=$(shopt -p)
|
||||
shopt -u extglob
|
||||
source /etc/profile &>/dev/null
|
||||
eval "$shellopts"
|
||||
|
||||
return $R_DEPS_SATISFIED
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue