make author check yetus safe
This commit is contained in:
parent
ca7b3e8310
commit
51e7dc3221
@ -16,8 +16,12 @@
|
|||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
cd "$DIR/../../.." || exit 1
|
cd "$DIR/../../.." || exit 1
|
||||||
|
|
||||||
grep -r --include="*.java" "@author" .
|
#hide this tring to not confuse yetus
|
||||||
if grep -r --include="*.java" "@author" .; then
|
AUTHOR="uthor"
|
||||||
|
AUTHOR="@a${AUTHOR}"
|
||||||
|
|
||||||
|
grep -r --include="*.java" "$AUTHOR" .
|
||||||
|
if grep -r --include="*.java" "$AUTHOR" .; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user