From a1587b03f080934f2b2a49f99176c67193f11323 Mon Sep 17 00:00:00 2001
From: Michel Memeteau <mm@ekimia.fr>
Date: Thu, 2 Apr 2020 18:24:37 +0200
Subject: [PATCH] final : add the -t param in the usage

---
 utils/provision | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/provision b/utils/provision
index d8dfac6..af27200 100755
--- a/utils/provision
+++ b/utils/provision
@@ -27,12 +27,12 @@ LOG_LEVEL="${LOG_LEVEL:-6}" # 7 = debug -> 0 = emergency
 read -r -d '' usage <<-'EOF'
   -u   [arg] URL to process. Required.
   -a   [arg] Application to install. (in the form github.com/indiehosters/wordpress or wordpress in REPO_MODE)
+  -t   [arg] Checkout a specific tag or branch from the application repo. default to master
   -s         Start the application right away.
   -b         Buys the associated domain name.
   -i         Configure OpenDKIM.
   -c         Configures DNS if possible.
   -d         Enables debug mode
-  -t         Checkout a specific tag or branch
   -h         This page
 EOF
 
@@ -117,7 +117,7 @@ function application () {
   
   #Define the tag/branch 
   
-  if [ -z ${arg_t:-} ]; then
+  if [ "${arg_t}" = "1" ]; then
     warning "No tag/branch specified, Using master "
     git_tag=master
   else
-- 
GitLab