From 0076c77670822e74850a7cecc18de49598e662a5 Mon Sep 17 00:00:00 2001 From: Massimiliano Adamo <massimiliano.adamo@geant.org> Date: Thu, 3 Jun 2021 22:42:53 +0200 Subject: [PATCH] fix typo --- acme-downloader.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acme-downloader.sh b/acme-downloader.sh index 225ad19..823df95 100755 --- a/acme-downloader.sh +++ b/acme-downloader.sh @@ -49,11 +49,11 @@ check_version() { echo "in order to fetch and install the new version you can use the option: --update" echo "" else - if [ -n $CHECK ]; then + if [[ -n $CHECK ]]; then echo "you are running the latest version" fi fi - if [ -n $CHECK ]; then + if [[ -n $CHECK ]]; then exit 0 fi } @@ -166,7 +166,7 @@ TYPE=$(echo $TYPE | tr '[:lower:]' '[:upper:]') check_version $0 -if [ -n $UPDATE ]; then +if [[ -n $UPDATE ]]; then curl $SCRIPT_URL -o $0 UPDATE_STATUS=$? if [ $UPDATE_STATUS == 0 ]; then -- GitLab