Add shell linting and tidying and update all shell scripts

This commit is contained in:
Dave Rolsky
2024-05-18 12:09:08 +08:00
parent c464bd9469
commit 9b467e6799
9 changed files with 69 additions and 33 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/bash
declare -i status
status=0
PRECIOUS=$(which precious)
@@ -7,8 +8,7 @@ if [[ -z $PRECIOUS ]]; then
PRECIOUS=./bin/precious
fi
"$PRECIOUS" lint -s
if (( $? != 0 )); then
if ! "$PRECIOUS" lint -s; then
status+=1
fi