diff options
Diffstat (limited to 'bin/nextcloudpi-config')
-rwxr-xr-x | bin/nextcloudpi-config | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/nextcloudpi-config b/bin/nextcloudpi-config index a21336a8..a631b8be 100755 --- a/bin/nextcloudpi-config +++ b/bin/nextcloudpi-config @@ -34,11 +34,12 @@ function nextcloud-config() [[ $? -eq $DIALOG_OK ]] && ncp-update while true; do + # fill options local LIST=() for item in $CONFDIR/*.sh; do DESC=$( grep "DESCRIPTION=" "$item" | sed 's|^DESCRIPTION="||;s|"$||' ) - grep -q "^ACTIVE_=yes" "$item" && local ON="✓" || local ON=" " + is_active_script "$item" && local ON="✓" || local ON=" " LIST+=( "$ON $( basename "$item" .sh )" "$DESC" ) done |