From d06a0bb501b7ce82a12a30ceb21e0fce8f70751e Mon Sep 17 00:00:00 2001 From: "mathieu.brunot" Date: Sun, 23 Jun 2019 19:15:14 +0200 Subject: [PATCH] :bug: Fix control on entry parameters Signed-off-by: mathieu.brunot --- backend/scripts/prepare-release.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/scripts/prepare-release.sh b/backend/scripts/prepare-release.sh index 5cc12247f..09c17ba2f 100644 --- a/backend/scripts/prepare-release.sh +++ b/backend/scripts/prepare-release.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash -if [ ! -d "$1" ] || [ ! -d "$2" ]; then - echo "Expecting path to backend and destination directory" + +if [ "$#" -ne 0 ]; then + echo "Expecting parameters: 1=path to backend; 2=destination directory" exit 1 fi