1
0
Fork 0
mirror of synced 2024-06-01 06:41:12 -04:00

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 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] return 1
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
fi fi
# we are quitting (above) if there are not exactly 2 vars, # we are quitting (above) if there are not exactly 2 vars,

View file

@ -5,10 +5,8 @@
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] return 1
EOF
return 1
fi fi
if [[ ! -s ${1} ]]; then if [[ ! -s ${1} ]]; then