devops: fix build scripts

This commit is contained in:
Andrey Lushnikov 2019-11-19 16:58:09 -08:00
parent 4e30f87084
commit bfcd92da7e
2 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,8 @@ set -e
set +x
trap "cd $(pwd -P)" EXIT
cd checkout
cd "$(dirname $0)"
cd "checkout"
if ! [[ $(git rev-parse --abbrev-ref HEAD) == "pwdev" ]]; then
echo "ERROR: Cannot build any branch other than PWDEV"

View File

@ -3,7 +3,8 @@ set -e
set +x
trap "cd $(pwd -P)" EXIT
cd checkout
cd "$(dirname $0)"
cd "checkout"
if ! [[ $(git rev-parse --abbrev-ref HEAD) == "pwdev" ]]; then
echo "ERROR: Cannot build any branch other than PWDEV"