From 31091963edaa505d00642aecb9950ce087a40b73 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 31 Mar 2012 17:26:39 +1000 Subject: makepkg: save and restore shopts when sourcing /etc/profile Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 437a1929..46191ee4 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 } -- cgit v1.2.3