From 8d393c89d0880fd8fec535482aed644f73b821ef Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 27 Dec 2014 21:40:41 +1100 Subject: [PATCH] autotest: fixed bash syntax --- Tools/scripts/build_autotest.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Tools/scripts/build_autotest.sh b/Tools/scripts/build_autotest.sh index b5b5cce282..187a1f5441 100755 --- a/Tools/scripts/build_autotest.sh +++ b/Tools/scripts/build_autotest.sh @@ -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