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
|
fi
|
||||||
done <<< $(printf "%s" "$PARENTS")
|
done <<< $(printf "%s" "$PARENTS")
|
||||||
fi
|
fi
|
||||||
if [ "$ALL_PASSED"=true ]; then
|
if [ "$ALL_PASSED" = true ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user