From f1b394a139694e3f2ea5f198d7660c1a80bfb206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Garrigue?= Date: Fri, 21 Aug 2015 08:46:31 +0000 Subject: [PATCH] Fix #7 --- scripts/install | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index b442771..8ea7341 100755 --- a/scripts/install +++ b/scripts/install @@ -6,9 +6,10 @@ domain=$1 path=$2 # Check domain/path availability asap -sudo yunohost app checkurl $domain$path -a $app -if [[ ! $? -eq 0 ]]; then - echo "This $domain$path is already in use, installation canceled" +check=`sudo yunohost app checkurl $domain$path -a $app` +if [ ! $? -eq 0 ] +then + echo $check exit 1 fi