cleanup function error messages

This commit is contained in:
Matt Hamilton 2016-01-07 15:36:31 -05:00
parent 9f838982fb
commit 89b2986db9
2 changed files with 4 additions and 11 deletions

View File

@ -5,12 +5,7 @@
local archive_name dir_to_archive local archive_name dir_to_archive
if (( ${#} != 2 )); then if (( ${#} != 2 )); then
cat >&2 <<EOF print "usage: ${0} [archive_name.ext] [/path/to/include/in/archive]" >&2
usage: ${0} [archive_name.zip] [/path/to/include/into/archive]
Where 'archive.zip' uses any of the following extensions:
.tar.gz, .tar.bz2, .tar.xz, .tar.lzma, .tar, .zip, .rar, .7z
There is no '-v' switch; all operations are verbose.
EOF
return 1 return 1
fi fi

View File

@ -5,9 +5,7 @@
local archive_name local archive_name
if (( ${#} != 1 )); then if (( ${#} != 1 )); then
cat >&2 <<EOF print "usage: ${0} [archive.ext]" >&2
usage: ${0} [archive.zip]
EOF
return 1 return 1
fi fi