Skip to content

Commit 62537b9

Browse files
committed
Replace discouraged shell syntax in taskfile dynamic variable
The backticks command substitution syntax is discouraged in favor of the modern `$()` syntax for the reasons described here: http://mywiki.wooledge.org/BashFAQ/082 The modern syntax is already in use for other dynamic variables in the taskfile, so this change also provides consistency.
1 parent 2f17bdc commit 62537b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ vars:
384384
TIMESTAMP_SHORT:
385385
sh: echo "{{now | date "20060102"}}"
386386
TAG:
387-
sh: echo "`git tag --points-at=HEAD 2> /dev/null`"
387+
sh: echo "$(git tag --points-at=HEAD 2> /dev/null)"
388388
VERSION: "{{ if .NIGHTLY }}nightly-{{ .TIMESTAMP_SHORT }}{{ else if .TAG }}{{ .TAG }}{{ else }}snapshot{{ end }}"
389389
CONFIGURATION_PACKAGE: "github.com/arduino/{{ .PROJECT_NAME }}/internal/configuration"
390390
LDFLAGS: >-

0 commit comments

Comments
 (0)