From 8f76bdebaa4f187d97b0c7d389ca5ee891088b98 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Mon, 1 Nov 2021 16:15:47 +0100
Subject: [PATCH] save config diffs

---
 bin/create_config.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/create_config.sh b/bin/create_config.sh
index 27cf198..d4e5051 100755
--- a/bin/create_config.sh
+++ b/bin/create_config.sh
@@ -129,7 +129,7 @@ fi
 
 # --- create target file
 diff "${tmpfile}" "${outfile}" >> ${cfgdiff} 2>/dev/null
-if [ $? -eq 0 && -f "${outfile}" ]; then
+if [ $? -eq 0 -a -f "${outfile}" ]; then
     _warn "INFO: no changes."
 else
     mv -f "${tmpfile}" "${outfile}" || exit 4
-- 
GitLab