From 55b487627b96ab2b948e3defe18d3c8117182768 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Sat, 22 Aug 2020 14:27:50 +0200 Subject: [PATCH] Small changes to build.sh --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 1b70fa8..ddb6810 100755 --- a/build.sh +++ b/build.sh @@ -5,19 +5,22 @@ echo "Version in plugin file: $VERSION" echo "Generated file will be: $FILE" if [ -e "$FILE" ]; then + echo echo "File already exists." givenMD5=`xpath -q -e 'string(//PLUGIN/@packageMD5)' zabbix_agent.plg` read currentMD5 _ < <(md5sum "$FILE") if [ "$givenMD5" = "$currentMD5" ]; then - echo "MD5 value matches." + echo "MD5 value is OK." else echo "MD5 value does not match!" echo "unraid_zabbix.plg: $givenMD5" echo "$FILE: $currentMD5" fi + echo + if [ "$1" != "--force" ]; then echo "Stopping now. Call '$0 --force' to force recreating the file." exit 1