diff options
Diffstat (limited to 'toolchain_utils_githooks/check-style')
-rwxr-xr-x | toolchain_utils_githooks/check-style | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toolchain_utils_githooks/check-style b/toolchain_utils_githooks/check-style index dbc38a71..7178ad49 100755 --- a/toolchain_utils_githooks/check-style +++ b/toolchain_utils_githooks/check-style @@ -6,7 +6,7 @@ # Convenient wrapper to run format and lint checks in parallel without # interleaving output/etc. -if test $# -eq 0; then +if [[ $# -eq 0 ]]; then echo "No files were given to check the format of." >&2 echo "Usage: $0 file1 file2 ..." >&2 exit 1 @@ -37,8 +37,8 @@ pid="$!" wait "${pid}" || success=false lint_output="$(cat "${tempfile}")" -if ! test -z "${lint_output}"; then +if [[ -n "${lint_output}" ]]; then echo "${lint_output}" fi -$success +"${success}" |