From 680dfaf241e833cba95be4a8df6568f180df0f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 4 Sep 2016 13:09:21 +0200 Subject: [PATCH] [fix][WIP]detect wallabag ? --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 5b68db8..37d9cc1 100755 --- a/scripts/install +++ b/scripts/install @@ -63,16 +63,16 @@ fi # Add users #check wallabag -sudo yunohost app list --installed -f wallabag2 --json | grep -q '"installed": true' -if [[ "$?" -eq 0 ]]; then +blabla=$(sudo yunohost app list --installed -f wallabag2 --json | grep -q '"installed": true') +if [[ $blabla -eq 0 ]]; then echo "Detected wallabag V2" wallabagPath=$(sudo yunohost app setting wallabag2 path | sed 's#/*$##') wallabagUrl=$domain$wallabagPath sharingWallabag="'sharing' => \n\tarray( \n\t\t0 => \n\t\tarray(\n\t\t\t'type' => 'wallabagv2',\n\t\t\t'name' => 'Wallabag',\n\t\t\t'url' => 'https://$wallabagUrl',\n\t\t)," sharingEnable=1 else - sudo yunohost app list --installed -f wallabag --json | grep -q '"installed": true' - if [[ "$?" -eq 0 ]]; then + blabla=$(sudo yunohost app list --installed -f wallabag --json | grep -q '"installed": true') + if [[ $blabla -eq 0 ]]; then echo "Detected wallabag" wallabagPath=$(sudo yunohost app setting wallabag path) wallabagUrl=$domain$wallabagPath