diff options
author | Amjad Mashaal <me@amjad.io> | 2016-08-27 20:14:42 +0300 |
---|---|---|
committer | Amjad Mashaal <me@amjad.io> | 2016-08-27 20:14:42 +0300 |
commit | cd5b91e4ae0e323044a7264dcd00e4a70d18615e (patch) | |
tree | 6b05d24378e3b2d6e4a0797347d99d941187965f /tests | |
parent | 1fdf41e636ca81a9871b41c48d3e2e9a75083d0d (diff) |
Adding root certbot-auto to modification check
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/modification-check.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/tests/modification-check.sh b/tests/modification-check.sh index b9cc669ff..53a5efa93 100755 --- a/tests/modification-check.sh +++ b/tests/modification-check.sh @@ -3,19 +3,33 @@ temp_dir=`mktemp -d` # Script should be run from Certbot's root directory -cp letsencrypt-auto ${temp_dir}/to-be-checked +cp letsencrypt-auto ${temp_dir}/letsencrypt-to-be-checked +cp certbot-auto ${temp_dir}/certbot-to-be-checked + cp letsencrypt-auto-source/pieces/fetch.py ${temp_dir}/fetch.py cd ${temp_dir} LATEST_VERSION=`python fetch.py --latest-version` python fetch.py --le-auto-script v${LATEST_VERSION} -cmp -s letsencrypt-auto to-be-checked +cmp -s letsencrypt-auto letsencrypt-to-be-checked if [ $? != 0 ]; then echo "Root letsencrypt-auto has changed." rm -rf temp_dir exit 1 +else + echo "Root letsencrypt-auto is unchanged." +fi + +cmp -s letsencrypt-auto certbot-to-be-checked + +if [ $? != 0 ]; then + echo "Root certbot-auto has changed." + rm -rf temp_dir + exit 1 +else + echo "Root certbot-auto is unchanged." fi rm -rf temp_dir |