From 1c41baeb2a9389ff65a940e975b1c51a43abbfdb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 23 Sep 2016 14:45:24 +0300 Subject: setenv.sh: bugfix TIL that FUNCNAME is an array. --- setenv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setenv.sh b/setenv.sh index befb4e5..318999b 100644 --- a/setenv.sh +++ b/setenv.sh @@ -86,7 +86,7 @@ normalize_pgn() { append_pgn() { if [ "$#" -ne 2 ]; then - echo "usage: $FUNCNAME DEST_PGN SRC_PGN" >&2 + echo "usage: ${FUNCNAME[0]} DEST_PGN SRC_PGN" >&2 return 1 fi @@ -96,7 +96,7 @@ append_pgn() { join_pgns() ( if [ "$#" -eq 0 ]; then - echo "usage: $FUNCNAME [PGN_FILE]" + echo "usage: ${FUNCNAME[0]} PGN_FILE..." return 0 fi -- cgit v1.2.3