From 26dfe8206a7a39a73645d7ef92ddf5bed99d0c1a Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 13 Jun 2021 19:07:07 -0300 Subject: src/remembering.sh: Choose output only at the top --- src/remembering.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/remembering.sh') diff --git a/src/remembering.sh b/src/remembering.sh index 4b36d3e..f0219c1 100755 --- a/src/remembering.sh +++ b/src/remembering.sh @@ -22,7 +22,7 @@ version() { } missing() { - printf 'Missing option: %s\n' "$1" >&2 + printf 'Missing option: %s\n' "$1" } # shellcheck disable=2068 @@ -63,13 +63,13 @@ while getopts 'hc:p:V' name; do done if [ -z "$COMMANDFLAG" ]; then - missing '-c "COMMAND"' + missing '-c "COMMAND"' >&2 usage >&2 exit 2 fi if [ -z "$PROFILEFLAG" ]; then - missing '-p PROFILE' + missing '-p PROFILE' >&2 usage >&2 exit 2 fi -- cgit v1.2.3