Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bugfix: Only remove file if it exists.

  • Loading branch information...
commit b76dd3c3f6ecaec82991e096653e7c1867be0a6a 1 parent 95ffd64
@wayneeseguin wayneeseguin authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/internal/shell/package/strategies/gnu/functions
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.