mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-19 08:12:07 +08:00
108478216b
date: 2022-08-23T18:53:11 master commit: f41dc62a12cc0f3cb8c5453c0caa0ba21e1bd01e
17 lines
370 B
Bash
Executable File
17 lines
370 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
RED="\033[0;31m"
|
|
GREEN="\033[0;32m"
|
|
CLEAR="\033[0m"
|
|
|
|
BRANCHES="devel dashcam3 release3"
|
|
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
|