aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-09-23 14:45:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-09-23 14:45:24 +0300
commit1c41baeb2a9389ff65a940e975b1c51a43abbfdb (patch)
treed3ca629ef059604397421874c6b32e678af9144c
parentadd a game (diff)
downloadchess-games-1c41baeb2a9389ff65a940e975b1c51a43abbfdb.tar.gz
chess-games-1c41baeb2a9389ff65a940e975b1c51a43abbfdb.zip
setenv.sh: bugfix
TIL that FUNCNAME is an array.
Diffstat (limited to '')
-rw-r--r--setenv.sh4
1 files 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