Skip to content

Commit 8c6d0c3

Browse files
committed
update acm-hook.sh
1 parent 9771df4 commit 8c6d0c3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

shell/acm-hook.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env bash
2-
# CLI test for autofill hook.
2+
# AutoCommit Messsage CLI script for autofill hook.
33
#
44
# See shell/README.md doc.
55
set -e
66

77
GENERATE_CMD='auto_commit_msg_generate'
88

9-
if ! command -v "$GENERATE_CMD" &> /dev/null; then
9+
if ! command -v "$GENERATE_CMD" &>/dev/null; then
1010
echo "Error: $GENERATE_CMD could not be found"
1111
exit 1
1212
fi
@@ -20,9 +20,9 @@ echo "COMMIT_MSG_FILE = $COMMIT_MSG_FILE"
2020
echo "COMMIT_SOURCE = $COMMIT_SOURCE"
2121

2222
# TODO: Test this - this conditional is untested.
23-
if [ "$COMMIT_SOURCE" = 'template']; then
23+
if [ "$COMMIT_SOURCE" = 'template' ]; then
2424
echo "Current commit message"
25-
<"$COMMIT_MSG_FILE"
25+
cat "$COMMIT_MSG_FILE"
2626
fi
2727

2828
CHANGES=$(git diff-index --name-status HEAD)

0 commit comments

Comments
 (0)