Permalink
Browse files

Bugfix: Only remove file if it exists.

  • Loading branch information...
1 parent 95ffd64 commit b76dd3c3f6ecaec82991e096653e7c1867be0a6a @wayneeseguin wayneeseguin committed Jul 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/internal/shell/package/strategies/gnu/functions
@@ -204,7 +204,9 @@ __sm.package.fetch.checksum()
package_checksum=$(cat "${archives_path}/${package_file}.checksum")
- rm "${archives_path}/${package_file}.checksum"
+ if [[ -f "${archives_path}/${package_file}.checksum" ]]
+ then rm "${archives_path}/${package_file}.checksum"
+ fi
if (( ${#package_checksum} == 32 ))
then

0 comments on commit b76dd3c

Please sign in to comment.