mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 13:32:05 +08:00
script to verify release and staging branches are the same
old-commit-hash: 8b2cb7130526baa69508b2355ca1d2240ff738ee
This commit is contained in:
Executable
+16
@@ -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
|
||||
Reference in New Issue
Block a user