From 288425f9026e8b47cc2114a8cd066971b90d0b1c Mon Sep 17 00:00:00 2001 From: Jasmin Abou Aldan Date: Mon, 16 Dec 2024 13:30:49 +0100 Subject: [PATCH] Introduce versioning; Minor readme updates --- app-deploy.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app-deploy.sh b/app-deploy.sh index 47d899c..2f2e05a 100755 --- a/app-deploy.sh +++ b/app-deploy.sh @@ -20,6 +20,8 @@ set -e bold=$(tput bold) normal=$(tput sgr0) +VERSION="1.1.1" + ################################# # MAIN # ################################# @@ -302,8 +304,10 @@ echo "# Copyright (c) 2020 Infinum. #" echo "###############################################################" echo -if ! [ "$1" == '--update' ] ; then - main -else +if [ "$1" == '--update' ] ; then script_auto_update -fi +elif [ "$1" == '-v' ] || [ "$1" == '--version' ] ; then + echo "$VERSION" +else + main +fi \ No newline at end of file