From 1e7e8bf4eb3018354806ff8c3d20187e8737a78e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Sep 2016 16:07:18 +0100 Subject: [PATCH] No exit --- website/deploy.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/website/deploy.sh b/website/deploy.sh index 1ebab649..b17633ca 100755 --- a/website/deploy.sh +++ b/website/deploy.sh @@ -4,18 +4,18 @@ lang=$1 dest_dir=$2 if [ ! $lang ]; then - lang='EN' + lang='EN' fi if [ ! $2 ]; then - echo 'Specify language and destination directory' - exit 1 + echo 'Specify language and destination directory' + exit 1 fi if [ ! -d $dest_dir ]; then - mkdir -p $dest_dir + mkdir -p $dest_dir fi if [ ! -d $dest_dir/images ]; then - mkdir $dest_dir/images + mkdir $dest_dir/images fi cp -r $lang/* $dest_dir @@ -24,4 +24,3 @@ cp -r ../img/* $dest_dir/images chown -R www-data:www-data $dest_dir echo "Website deployed to $dest_dir" -exit 0