From 5007dcc9fb43cf3ab56ca0d41ae88f9e261aed31 Mon Sep 17 00:00:00 2001 From: Julien Malik Date: Mon, 17 Nov 2014 13:56:51 +0100 Subject: [PATCH] [fix] remove bad substitution This causes the following error : install: line 13: ${$domain%?}: bad substitution I guess the intended subtitution was : domain=${domain%?} instead, which removes the last character of domain, and thus is wrong. --- scripts/install | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 5d02da8..81d2916 100644 --- a/scripts/install +++ b/scripts/install @@ -10,9 +10,6 @@ password=$4 is_public=$5 default_lang=$6 -domain=${$domain%?} - - # Check domain/path availability sudo yunohost app checkurl $domain$path -a $app if [[ ! $? -eq 0 ]]; then @@ -73,4 +70,4 @@ sudo yunohost app addaccess $app -u $admin sudo rm -f $final_path/install.php # Restart services sudo service nginx reload -sudo yunohost app ssowatconf \ No newline at end of file +sudo yunohost app ssowatconf