aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--azure-pipelines.yml2
-rw-r--r--scripts/deploy-azure.sh2
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