sekrit: use EOF for heredoc

This commit is contained in:
Lucas Gabriel Vuotto 2025-04-09 20:48:52 +00:00
parent 46d4e6036f
commit afa6641a79

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# sekrit # sekrit
# Written in 2018-2020,2022,2024 by Lucas # Written in 2018-2020,2022,2024-2025 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved # CC0 1.0 Universal/Public domain - No rights reserved
# #
# To the extent possible under law, the author(s) have dedicated all # To the extent possible under law, the author(s) have dedicated all
@ -27,7 +27,7 @@
usage() usage()
{ {
cat - <<. >&2 cat - <<EOF >&2
Usage: Usage:
${0##*/} add key [value ...] ${0##*/} add key [value ...]
${0##*/} cp [-k] key ${0##*/} cp [-k] key
@ -38,7 +38,7 @@ Usage:
${0##*/} rm [-f] key [key ...] ${0##*/} rm [-f] key [key ...]
If no value was provided on command line, add reads from stdin. If no value was provided on command line, add reads from stdin.
. EOF
exit 1 exit 1
} }