Add shell linting and tidying and update all shell scripts
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user