autotest: fixed bash syntax

This commit is contained in:
Andrew Tridgell 2014-12-27 21:40:41 +11:00
parent f2b0fc3566
commit 8d393c89d0

View File

@ -25,14 +25,7 @@ newtagsuavcan=$(cd uavcan && git fetch --tags | wc -l)
oldhashuavcan=$(cd uavcan && git rev-parse origin/master)
newhashuavcan=$(cd uavcan && git rev-parse HEAD)
if [ "$oldhash" = "$newhash" -a
"$newtags" = "0" -a
"$oldhashpx4" = "$newhashpx4" -a
"$newtagspx4" = "0" -a
"$oldhashnuttx" = "$newhashnuttx" -a
"$newtagsnuttx" = "0" -a
"$oldhashuavcan" = "$newhashuavcan" -a
"$newtagsuavcan" = "0" ]; then
if [ "$oldhash" = "$newhash" -a "$newtags" = "0" -a "$oldhashpx4" = "$newhashpx4" -a "$newtagspx4" = "0" -a "$oldhashnuttx" = "$newhashnuttx" -a "$newtagsnuttx" = "0" -a "$oldhashuavcan" = "$newhashuavcan" -a "$newtagsuavcan" = "0" ]; then
echo "no change $oldhash $newhash `date`" >> build.log
exit 0
fi