diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2018-05-02 20:24:44 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-05-12 13:11:52 +0200 |
commit | 542c3cf812e32989610cb09f40dbc237f2fba9bb (patch) | |
tree | 16e7eb0b36d8d61dc93a3fe6cd0aaa5e888e0940 /scripts/makepkg.sh.in | |
parent | 2c94118dc168f16231e38a84c0b569b5b0006fd9 (diff) | |
download | pacman-542c3cf812e32989610cb09f40dbc237f2fba9bb.tar.gz pacman-542c3cf812e32989610cb09f40dbc237f2fba9bb.tar.xz |
libmakepkg: only save the shellopts we need
micro-optimization: We only care about temporarily enforcing extglob, so
that is the only one we need to explicitly restore.
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | scripts/makepkg.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index be80cc0e..64276c5d 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -275,7 +275,7 @@ handle_deps() { # we might need the new system environment # save our shell options and turn off extglob - local shellopts=$(shopt -p) + local shellopts=$(shopt -p extglob) shopt -u extglob source /etc/profile &>/dev/null eval "$shellopts" |