|
@ -140,12 +140,12 @@ install_file() { |
|
|
mv -v "${path}" "$candidate" || return 1 |
|
|
mv -v "${path}" "$candidate" || return 1 |
|
|
else |
|
|
else |
|
|
info "File '$path' exists and is already with the right content." |
|
|
info "File '$path' exists and is already with the right content." |
|
|
|
|
|
rm -f "$tmpfile" |
|
|
|
|
|
return |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
else |
|
|
|
|
|
echo "Creating '${path}'." |
|
|
echo "Creating '${path}'." |
|
|
mv "${tmpfile}" "$path" || return 1 |
|
|
mv "${tmpfile}" "$path" || return 1 |
|
|
fi |
|
|
|
|
|
rm -f "$tmpfile" |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|