Skip to content
Snippets Groups Projects
Commit 37ffde37 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

save config diffs

parent 5d719eca
No related branches found
No related tags found
No related merge requests found
...@@ -128,8 +128,8 @@ if [ $? -eq 0 ]; then ...@@ -128,8 +128,8 @@ if [ $? -eq 0 ]; then
fi fi
# --- create target file # --- create target file
diff "${tmpfile}" "${outfile}" >> ${cfgdiff} diff "${tmpfile}" "${outfile}" >> ${cfgdiff} 2>/dev/null
if [ $? -eq 0 ]; then if [ $? -eq 0 && -f "${outfile}" ]; then
_warn "INFO: no changes." _warn "INFO: no changes."
else else
mv -f "${tmpfile}" "${outfile}" || exit 4 mv -f "${tmpfile}" "${outfile}" || exit 4
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment