fix: Make the shellcheck show most warnings more clearly
This commit is contained in:
parent
98c48e0440
commit
e3962133f0
1 changed files with 2 additions and 1 deletions
3
copy.sh
3
copy.sh
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
for i in ./*.sh; do
|
for i in ./*.sh; do
|
||||||
shfmt -w "${i}"
|
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##./}"
|
i_tmp="${i##./}"
|
||||||
find /etc/cron.* -iname "${i_tmp%.sh}" | while read -r j; do
|
find /etc/cron.* -iname "${i_tmp%.sh}" | while read -r j; do
|
||||||
echo "${j}"
|
echo "${j}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue