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

save config diffs

parent b77e5c76
No related branches found
No related tags found
No related merge requests found
...@@ -138,6 +138,7 @@ diff "${tmpfile}" "${outfile}" >> ${cfgdiff} 2>/dev/null || bHasChanges=1 ...@@ -138,6 +138,7 @@ diff "${tmpfile}" "${outfile}" >> ${cfgdiff} 2>/dev/null || bHasChanges=1
if [ $bHasChanges -eq 0 ]; then if [ $bHasChanges -eq 0 ]; then
_warn "INFO: no changes." _warn "INFO: no changes."
else else
echo "INFO: writing ${outfile} ..."
mv -f "${tmpfile}" "${outfile}" || exit 4 mv -f "${tmpfile}" "${outfile}" || exit 4
fi fi
......
...@@ -72,6 +72,7 @@ function setprofile(){ ...@@ -72,6 +72,7 @@ function setprofile(){
downloadtmp="${tmpdir}/${IMLCI_PROJECT}.tgz.tmp" downloadtmp="${tmpdir}/${IMLCI_PROJECT}.tgz.tmp"
cfgdiff="${tmpdir}/${IMLCI_PROJECT}_cfgdiff.txt" cfgdiff="${tmpdir}/${IMLCI_PROJECT}_cfgdiff.txt"
test -f "${cfgdiff}" && rm -f "${cfgdiff}" test -f "${cfgdiff}" && rm -f "${cfgdiff}"
export cfgdiff
} }
# output a colored infoline with date and given message # output a colored infoline with date and given message
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment