From 37ffde374d947c9ee689e261d382fb38700e4863 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch> Date: Mon, 1 Nov 2021 16:14:28 +0100 Subject: [PATCH] save config diffs --- bin/create_config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/create_config.sh b/bin/create_config.sh index b26f89a..27cf198 100755 --- a/bin/create_config.sh +++ b/bin/create_config.sh @@ -128,8 +128,8 @@ if [ $? -eq 0 ]; then fi # --- create target file -diff "${tmpfile}" "${outfile}" >> ${cfgdiff} -if [ $? -eq 0 ]; then +diff "${tmpfile}" "${outfile}" >> ${cfgdiff} 2>/dev/null +if [ $? -eq 0 && -f "${outfile}" ]; then _warn "INFO: no changes." else mv -f "${tmpfile}" "${outfile}" || exit 4 -- GitLab