mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 18:43:52 +00:00
shfmt: Reformat shell scripts with shfmt.
https://github.com/mvdan/sh Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
caa939d2d5
commit
dfaea9df65
@@ -8,12 +8,12 @@
|
||||
# Do not invoke gitlint if commit message is empty
|
||||
if grep -q '^[^#]' "$1"; then
|
||||
lint_cmd="cd ~/zulip && python -m gitlint.cli"
|
||||
if \
|
||||
if [ -z "$VIRTUAL_ENV" ] && command -v vagrant > /dev/null && [ -e .vagrant ]; then
|
||||
if
|
||||
if [ -z "$VIRTUAL_ENV" ] && command -v vagrant >/dev/null && [ -e .vagrant ]; then
|
||||
! vagrant ssh -c "$lint_cmd"
|
||||
else
|
||||
! eval "$lint_cmd"
|
||||
fi < "$1"
|
||||
fi <"$1"
|
||||
then
|
||||
echo "WARNING: Your commit message does not match Zulip's style guide."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user