From e3962133f000152a7ca80c1d2c6507d8843a5d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Sol=C3=ADs?= Date: Fri, 7 Feb 2025 16:20:39 +0000 Subject: [PATCH] fix: Make the shellcheck show most warnings more clearly --- copy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copy.sh b/copy.sh index 829ffb4..9a6b1d9 100755 --- a/copy.sh +++ b/copy.sh @@ -1,7 +1,8 @@ #!/bin/bash for i in ./*.sh; do shfmt -w "${i}" - shellcheck -o all -f diff "${i}" | patch -p1 + shellcheck -o all -e SC2312 -f diff "${i}" | patch -p1 + shellcheck -o all -e SC2312 "${i}" i_tmp="${i##./}" find /etc/cron.* -iname "${i_tmp%.sh}" | while read -r j; do echo "${j}"