Skip to content

Commit

Permalink
fix warp in directory issue (#32)
Browse files Browse the repository at this point in the history
before fix: 
when warp in directory is true, it will generate ` srcdir="${tmpdir}/${NAME}" rm -rf "${srcdir}"`
when warp in directory is false, it will also generate ` srcdir="${tmpdir}/${NAME}" rm -rf "${srcdir}"`
  • Loading branch information
cxjava authored and kamilsk committed Nov 11, 2023
1 parent 6f21a71 commit 0cc3bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell_godownloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ execute() {
http_download "${tmpdir}/${TARBALL}" "${TARBALL_URL}"
http_download "${tmpdir}/${CHECKSUM}" "${CHECKSUM_URL}"
hash_sha256_verify "${tmpdir}/${TARBALL}" "${tmpdir}/${CHECKSUM}"
{{- if .Archive.WrapInDirectory }}
{{- if eq .Archive.WrapInDirectory "true" }}
srcdir="${tmpdir}/${NAME}"
rm -rf "${srcdir}"
{{- else }}
Expand Down

0 comments on commit 0cc3bb1

Please sign in to comment.