From 4a0c33648441ee07d02506ce95ec84e5fb87e9cc Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Fri, 26 May 2017 14:41:59 -0700 Subject: [PATCH] modification-check.sh now fails if a command fails (#4746) --- tests/modification-check.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/modification-check.sh b/tests/modification-check.sh index 6f412ba47..0145b0228 100755 --- a/tests/modification-check.sh +++ b/tests/modification-check.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e temp_dir=`mktemp -d` trap "rm -rf $temp_dir" EXIT @@ -43,9 +43,7 @@ cp ${temp_dir}/original-lea letsencrypt-auto-source/letsencrypt-auto cd $temp_dir -cmp -s original-lea build-lea - -if [ $? != 0 ]; then +if ! cmp -s original-lea build-lea; then echo "letsencrypt-auto-source/letsencrypt-auto doesn't match output of \ build.py." FLAG=true