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,13 +5,8 @@
local archive_name dir_to_archive
if (( ${#} != 2 )); then
cat >&2 <<EOF
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
print "usage: ${0} [archive_name.ext] [/path/to/include/in/archive]" >&2
return 1
fi
# we are quitting (above) if there are not exactly 2 vars,

View File

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