From 64a5849178787af70a2ac1b583d5f2a6b72d983b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 19 Feb 2017 16:29:43 -0500 Subject: lib/common.sh: simplify include-guard --- lib/common.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3-54-g00ecf