mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-08 23:58:39 +00:00
Fix new hooks
This commit is contained in:
parent
f56dd74de6
commit
58e229e911
|
|
@ -71,7 +71,13 @@ isValidBashScript() {
|
||||||
}
|
}
|
||||||
|
|
||||||
hasInvalidBasicSyntax() {
|
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
|
# Check for tabs
|
||||||
if [[ -n $(grep -P '\t' "$1") ]]; then
|
if [[ -n $(grep -P '\t' "$1") ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user