From 916adc167aa398dd4e097e8e1f5eb3ec22e5ac7d Mon Sep 17 00:00:00 2001 From: aviskarkc10 Date: Tue, 8 Oct 2019 23:15:31 +0545 Subject: [PATCH] Add cleaner way to echo new line --- commit | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commit b/commit index 57d8f8b..b0eee6f 100755 --- a/commit +++ b/commit @@ -2,11 +2,9 @@ set -euo pipefail if [ -z "${1:-}" ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then - echo "Create a commit prefixed with the current branch name." - echo + echo -e "Create a commit prefixed with the current branch name.\n" echo "Usage:" - echo " commit MESSAGE" - echo + echo -e " commit MESSAGE\n" echo "Example:" echo " commit \"Hello world!\"" exit 1