mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-12 09:08:40 +00:00
Update logging.sh
This commit is contained in:
parent
a3c63609c2
commit
8862eb7d0f
|
|
@ -11,7 +11,7 @@ git diff --cached --name-only | while read FILE; do
|
||||||
if [[ "$FILE" =~ ^.+(php|js)$ ]]; then
|
if [[ "$FILE" =~ ^.+(php|js)$ ]]; then
|
||||||
RESULT=$(grep "console.log(" "$FILE")
|
RESULT=$(grep "console.log(" "$FILE")
|
||||||
if [ ! -z $RESULT ]; then
|
if [ ! -z $RESULT ]; then
|
||||||
echo -e "\e[1;33m\tWarning, the commit contains a call to var_dump(). Commit was not aborted, however.\e[0m" >&2
|
echo -e "\e[1;33m\tWarning, the commit contains a call to console.log(). Commit was not aborted, however.\e[0m" >&2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user