diff --git a/scripts/deploy-docs.sh b/scripts/deploy-docs.sh index fa2c78dfcac..b637a0fa654 100755 --- a/scripts/deploy-docs.sh +++ b/scripts/deploy-docs.sh @@ -46,7 +46,7 @@ cd $TARGET_DIR git checkout $TARGET_BRANCH # https://www.chartjs.org/dist/$VERSION -if [["$VERSION" != "$TAG"]] then +if [["$VERSION" != "$TAG"]]; then deploy_versioned_files $VERSION fi diff --git a/scripts/utils.sh b/scripts/utils.sh index 1cc8fcb3061..d3b6d46248b 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -11,7 +11,7 @@ function tag_from_version { if [ "$version" == "master" ]; then tag=master elif [[ "$version" =~ ^[^-]+$ ]]; then - if [[ "$mode" == "release" ]] + if [[ "$mode" == "release" ]]; then tag=$version else tag=latest