diff options
-rwxr-xr-x | tools/shmin.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/shmin.sh b/tools/shmin.sh index 02684b6..2e402fa 100755 --- a/tools/shmin.sh +++ b/tools/shmin.sh @@ -190,6 +190,9 @@ minify() if ! cat "${output}~" >"${output}"; then die 'Cannot rename file to "%s"' "${output}" fi + if ! rm "${output}~"; then + die 'Cannot remove file "%s"' "${output}~" + fi } usage() |