Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2017-02-19 16:29:43 -0500
committerLuke Shumaker <lukeshu@parabola.nu>2017-02-19 16:29:43 -0500
commit64a5849178787af70a2ac1b583d5f2a6b72d983b (patch)
tree36bd4a358a4a45a49f044cfbdd1b3840a9e61d0f /lib
parentd0a8e61719b35f3f7d25a515bafc11729e41a41c (diff)
lib/common.sh: simplify include-guard
Diffstat (limited to 'lib')
-rw-r--r--lib/common.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/common.sh b/lib/common.sh
index bb46f6c..9ea9681 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -6,9 +6,7 @@
# License: Unspecified
-shopt -s extglob
-
-if [[ -z ${_INCLUDE_COMMON_SH:-} ]]; then
+[[ -z ${_INCLUDE_COMMON_SH:-} ]] || return 0
_INCLUDE_COMMON_SH=true
[[ -n ${TEXTDOMAIN:-} ]] || export TEXTDOMAIN='libretools'
@@ -295,5 +293,3 @@ check_root() {
exec su root -c "$(printf ' %q' "$@")"
fi
}
-
-fi