Skip to content

Commit ef76c25

Browse files
committed
build(task): replace .ext with exeExt
1 parent 7eed601 commit ef76c25

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Taskfile.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version: '3'
22

33
vars:
4-
ext: '{{if eq OS "windows"}}.exe{{end}}'
54
pago_agent_cmd_dir: cmd/pago-agent
65
pago_cmd_dir: cmd/pago
76

@@ -57,7 +56,7 @@ tasks:
5756
clean:
5857
desc: 'Clean up executables'
5958
cmds:
60-
- rm -f {{.pago_cmd_dir}}/pago{{.ext}} {{.pago_agent_cmd_dir}}/pago-agent{{.ext}}
59+
- rm -f {{.pago_cmd_dir}}/pago{{exeExt}} {{.pago_agent_cmd_dir}}/pago-agent{{exeExt}}
6160

6261
lint:
6362
desc: 'Run golangci-lint'
@@ -69,7 +68,7 @@ tasks:
6968
deps:
7069
- build-pago
7170
cmds:
72-
- VERSION=$({{.pago_cmd_dir}}/pago{{.ext}} version) go run script/release.go
71+
- VERSION=$({{.pago_cmd_dir}}/pago{{exeExt}} version) go run script/release.go
7372

7473
test:
7574
desc: 'Run tests'

0 commit comments

Comments
 (0)