Skip to content

Commit 2328a52

Browse files
committed
fix for is_app_enabled(): replace hard coded 'previewgenerator' by variable
Signed-off-by: MagelanM <magellanm@posteo.de>
1 parent 190f95e commit 2328a52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

etc/library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ function is_more_recent_than()
503503
function is_app_enabled()
504504
{
505505
local app="$1"
506-
ncc app:list --output json | jq -r '.enabled | keys | .[]' | grep '^previewgenerator$' > /dev/null 2> /dev/null
506+
ncc app:list --output json | jq -r '.enabled | keys | .[]' | grep "^${app}$" > /dev/null 2> /dev/null
507507
}
508508

509509
function check_distro()

0 commit comments

Comments
 (0)