Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'etc/library.sh')
-rwxr-xr-xetc/library.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/library.sh b/etc/library.sh
index c177abc6..a577c2f1 100755
--- a/etc/library.sh
+++ b/etc/library.sh
@@ -96,8 +96,11 @@ function is_active_script()
local SCRIPT=$1
unset is_active
source "$SCRIPT"
+ [[ $( type -t is_active ) == function ]] && {
+ is_active
+ return $?
+ }
grep -q "^ACTIVE_=yes" "$SCRIPT" && return 0
- [[ $( type -t is_active ) == function ]] && is_active
)
}