Sign in
android
/
platform
/
frameworks
/
support
/
033960f99b2838b3fec974b12b806a65497279f9
/
.
/
development
/
diagnose-build-failure
/
impl
/
vgrep.sh
blob: d3acb8f4a22a54249f8695b30f0eed397a67f6be [
file
] [
log
] [
blame
]
#!/bin/bash
set
-
e
query
=
"$1"
if
[
"$query"
==
""
];
then
echo
"Usage: vgrep.sh <query>"
echo
"Runs grep and inverts the return code"
exit
2
fi
if
grep
"$1"
;
then
exit
1
fi
exit
0