Skip to content

Commit

Permalink
fix(taskfiles): Trim trailing slash from URL prefix in `download-and-…
Browse files Browse the repository at this point in the history
…extract-tar` (fixes y-scope#577). (y-scope#578)
  • Loading branch information
kirkrodrigues authored Nov 8, 2024
1 parent 426cc3d commit 9154949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ tasks:
- "mkdir -p '{{.OUTPUT_TMP_DIR}}'"
- >-
curl --fail --location --show-error
"{{.URL_PREFIX}}/{{.TAR_NAME}}"
"{{trimSuffix "/" .URL_PREFIX}}/{{.TAR_NAME}}"
--output "{{.TAR_PATH}}"
- "tar xf '{{.TAR_PATH}}' --directory '{{.OUTPUT_TMP_DIR}}'"
- "mv '{{.EXTRACTED_DIR}}' '{{.OUTPUT_DIR}}'"
Expand Down

0 comments on commit 9154949

Please sign in to comment.