diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-09-23 14:45:24 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-09-23 14:45:24 +0300 |
commit | 1c41baeb2a9389ff65a940e975b1c51a43abbfdb (patch) | |
tree | d3ca629ef059604397421874c6b32e678af9144c | |
parent | add a game (diff) | |
download | chess-games-1c41baeb2a9389ff65a940e975b1c51a43abbfdb.tar.gz chess-games-1c41baeb2a9389ff65a940e975b1c51a43abbfdb.zip |
setenv.sh: bugfix
TIL that FUNCNAME is an array.
Diffstat (limited to '')
-rw-r--r-- | setenv.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |