Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrad Warren <bmw@users.noreply.github.com>2017-05-27 00:41:59 +0300
committerGitHub <noreply@github.com>2017-05-27 00:41:59 +0300
commit4a0c33648441ee07d02506ce95ec84e5fb87e9cc (patch)
tree3ab129f1d1127caf1ad07a36c6e0cbf7aca5d872 /tests
parent4146685104416cfa9181d049627c7d816c88eb51 (diff)
modification-check.sh now fails if a command fails (#4746)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/modification-check.sh6
1 files 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