script to verify release and staging branches are the same

pull/23077/head
Adeeb Shihadeh 2021-11-29 17:42:18 -08:00
parent 65ca9be82a
commit 8b2cb71305
1 changed files with 16 additions and 0 deletions

16
release/verify.sh 100755
View File

@ -0,0 +1,16 @@
#!/bin/bash
set -e
RED="\033[0;31m"
GREEN="\033[0;32m"
CLEAR="\033[0m"
BRANCHES="release2 release3 dashcam dashcam3"
for b in $BRANCHES; do
if git diff --quiet origin/$b origin/$b-staging && [ "$(git rev-parse origin/$b)" = "$(git rev-parse origin/$b-staging)" ]; then
printf "%-10s $GREEN ok $CLEAR\n" "$b"
else
printf "%-10s $RED mismatch $CLEAR\n" "$b"
fi
done