From 40aced4fa306e06e188a86954d50d33baa22ee2a Mon Sep 17 00:00:00 2001 From: tanshu Date: Tue, 22 Jun 2021 05:34:11 +0530 Subject: [PATCH] fix: When version was not bumped, deploy updated the version to blank --- deploy.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index b8c6e54..f7768f2 100755 --- a/deploy.sh +++ b/deploy.sh @@ -5,7 +5,12 @@ cd "$parent_path" || exit ./lint.sh -./version_bump.sh "$1" +if [ 1 -eq "$#" ] +then + ./version_bump.sh "$1" +else + ./version_bump.sh +fi cd "$parent_path/docker/app" || exit docker build --tag barker:latest .