Skip to content

Commit 406fde0

Browse files
committed
Sync shell:format task with template
1 parent ed59ca6 commit 406fde0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Taskfile.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,16 @@ tasks:
284284
# https://github.com/mvdan/sh#shfmt
285285
- shfmt -d .
286286

287+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-shell-task/Taskfile.yml
287288
shell:format:
288-
desc: Format shell scripts
289+
desc: Format shell script files
289290
cmds:
290291
- |
291292
if ! which shfmt &>/dev/null; then
292293
echo "shfmt not installed or not in PATH. Please install: https://github.com/mvdan/sh#shfmt"
293294
exit 1
294295
fi
295-
- shfmt -l -w .
296+
- shfmt -w .
296297

297298
config:check:
298299
desc: Lint and check formatting of configuration files

0 commit comments

Comments
 (0)