mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
Fix new hooks
This commit is contained in:
parent
f56dd74de6
commit
58e229e911
|
|
@ -71,7 +71,13 @@ isValidBashScript() {
|
|||
}
|
||||
|
||||
hasInvalidBasicSyntax() {
|
||||
# Check whitespace end of line in code
|
||||
echo "$(grep -P ' $' )"
|
||||
echo $(grep -P ' $' "$1")
|
||||
|
||||
if [[ -n $(grep -P ' $' "$1") ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Check for tabs
|
||||
if [[ -n $(grep -P '\t' "$1") ]]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user