diff options
author | 2018-11-16 12:01:34 +0000 | |
---|---|---|
committer | 2018-11-16 12:01:34 +0000 | |
commit | 50ca98c9e854e2841ca18d18b8b41c47db117687 (patch) | |
tree | c778e7f0cae66a495fdc5a293bd52ea0fe296e8c | |
parent | Azure: Attempt to fix differing build script syntax (diff) |
Azure: I hate bash.
-rw-r--r-- | azure-pipelines.yml | 2 | ||||
-rw-r--r-- | scripts/deploy-azure.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bb8d7999e..bce6dbce4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -50,5 +50,5 @@ jobs: dockerRegistryEndpoint: 'DockerHub' command: 'login' - - bash: sh scripts/deploy-azure.sh + - bash: bash scripts/deploy-azure.sh displayName: 'Build and deploy containers' diff --git a/scripts/deploy-azure.sh b/scripts/deploy-azure.sh index 378cceaf6..4df5cb0fc 100644 --- a/scripts/deploy-azure.sh +++ b/scripts/deploy-azure.sh @@ -1,7 +1,7 @@ #!/bin/bash # Build and deploy on master branch -if [ $BUILD_SOURCEBRANCHNAME == 'master' ]; then +if [[ $BUILD_SOURCEBRANCHNAME == 'master' ]]; then changed_lines=$(git diff HEAD~1 HEAD docker/base.Dockerfile | wc -l) if [ $changed_lines != '0' ]; then |