Skip to content

Commit

Permalink
make cat cross platform
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode committed May 14, 2024
1 parent 0e44e95 commit f2d11ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ vars:
CHANGELOG: CHANGELOG.md
NEXT_VERSION: VERSION
MAKEDIR_P: 'python -c "import sys; import os; os.makedirs(sys.argv[1], exist_ok=True)"'
CAT: '{{ if eq OS "windows" }}type{{ else }}cat{{ end }}'

tasks:

Expand Down Expand Up @@ -178,7 +179,7 @@ tasks:
- silent: true
cmd: |
echo "dist: {{ .SNAPSHOT_DIR }}" > {{ .TMP_DIR }}/goreleaser.yaml
cat .goreleaser.yaml >> {{ .TMP_DIR }}/goreleaser.yaml
{{ .CAT }} .goreleaser.yaml >> {{ .TMP_DIR }}/goreleaser.yaml
- "{{ .TOOL_DIR }}/goreleaser release --clean --skip=publish --skip=sign --snapshot --config {{ .TMP_DIR }}/goreleaser.yaml"

Expand Down

0 comments on commit f2d11ee

Please sign in to comment.