From bf4a390c23a860ff8bda9538942f2b16cdcf8c05 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 4 Apr 2023 12:10:54 -0300 Subject: Makefile: Add ShellCheck to "check" target --- v2/src/bin/makemake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'v2/src/bin/makemake') diff --git a/v2/src/bin/makemake b/v2/src/bin/makemake index f4ab87a..06a7d33 100755 --- a/v2/src/bin/makemake +++ b/v2/src/bin/makemake @@ -95,6 +95,7 @@ for r in $RESOURCES; do if [ "$e" = '.md' ]; then continue fi + # shellcheck disable=2016 printf '%s%s = $(%s.md:.md=%s)\n' "$r" "$e" "$r" "$e" done printf '%s =' "$r" @@ -102,6 +103,7 @@ for r in $RESOURCES; do if [ "$e" = '.md' ]; then continue fi + # shellcheck disable=2016 printf ' $(%s%s)' "$r" "$e" done printf '\n' @@ -110,11 +112,12 @@ for r in $RESOURCES; do done all_resources() { - echo $RESOURCES | tr ' ' '\n' + echo "$RESOURCES" | tr ' ' '\n' | grep . } all_vars() { EXT="$1" + # shellcheck disable=2016 all_resources | sed 's|^|$(|' | sed "s|$|$EXT)|" | -- cgit v1.2.3