From 6b30723012ff09d16c9ceb8b6535383eb595e41e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 27 Oct 2015 01:09:03 -0400 Subject: tools/shmin.sh: Preserve mode of output file --- diff --git a/tools/shmin.sh b/tools/shmin.sh index 9bf50b7..02684b6 100755 --- a/tools/shmin.sh +++ b/tools/shmin.sh @@ -187,7 +187,7 @@ minify() fi # Set output file name. - if ! mv "${output}~" "${output}"; then + if ! cat "${output}~" >"${output}"; then die 'Cannot rename file to "%s"' "${output}" fi } -- cgit v0.9.1