]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
prepare-commit-msg: Avoid warning on macOS and shellcheck fixes
authorAlex Richardson <arichardson@FreeBSD.org>
Thu, 7 Jan 2021 14:00:32 +0000 (14:00 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Thu, 7 Jan 2021 14:00:32 +0000 (14:00 +0000)
commitd146f831801f226802e3e1d55bec2cfbea9dc577
tree2122bfa5be2f9808f2669a11a099db1900d6d5de
parentb500c184b6569ff2443bd9d0e3697fafdb2e47ac
prepare-commit-msg: Avoid warning on macOS and shellcheck fixes

The macOS /bin/sh complains about using return outside of functions.
Replace `return 0` with `exit 0` to fix this. While editing this files
I've also fixed all the shellcheck warnings that were displayed by my IDE.

Reviewed By: emaste
Differential Revision: https://reviews.freebsd.org/D28016
tools/tools/git/hooks/prepare-commit-msg