summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/lint_pkgbuild/conflicts.sh.in
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2018-05-02 20:24:44 +0200
committerAllan McRae <allan@archlinux.org>2018-05-12 13:11:52 +0200
commit542c3cf812e32989610cb09f40dbc237f2fba9bb (patch)
tree16e7eb0b36d8d61dc93a3fe6cd0aaa5e888e0940 /scripts/libmakepkg/lint_pkgbuild/conflicts.sh.in
parent2c94118dc168f16231e38a84c0b569b5b0006fd9 (diff)
downloadpacman-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/libmakepkg/lint_pkgbuild/conflicts.sh.in')
-rw-r--r--scripts/libmakepkg/lint_pkgbuild/conflicts.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/libmakepkg/lint_pkgbuild/conflicts.sh.in b/scripts/libmakepkg/lint_pkgbuild/conflicts.sh.in
index 8abad0b0..a18c25fa 100644
--- a/scripts/libmakepkg/lint_pkgbuild/conflicts.sh.in
+++ b/scripts/libmakepkg/lint_pkgbuild/conflicts.sh.in
@@ -37,8 +37,8 @@ lint_conflicts() {
get_pkgbuild_all_split_attributes conflicts conflicts_list
- # save our shell options and turn on extglob
- local shellopts=$(shopt -p)
+ # this function requires extglob - save current status to restore later
+ local shellopts=$(shopt -p extglob)
shopt -s extglob
for conflict in "${conflicts_list[@]}"; do