fix comparison
spaces are needed around the comparison operator. See https://github.com/koalaman/shellcheck/wiki/SC2077 This fixes the issue that even `validate.sh` finds an issue the return code is `0`
This commit is contained in:
@@ -309,7 +309,7 @@ validate_commit_and_parents() {
|
||||
fi
|
||||
done <<< $(printf "%s" "$PARENTS")
|
||||
fi
|
||||
if [ "$ALL_PASSED"=true ]; then
|
||||
if [ "$ALL_PASSED" = true ]; then
|
||||
return 0
|
||||
fi
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user