Minor code cleanup
This commit is contained in:
parent
c29fa867f3
commit
b6f5334011
1 changed files with 2 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ size="$3"
|
|||
|
||||
cleanup() {
|
||||
[[ -n "$archive" ]] && rm -f "$archive*"
|
||||
|
||||
echo "Cleaned up all $archive files" >&2
|
||||
}
|
||||
|
||||
|
|
@ -37,7 +38,7 @@ check_input() {
|
|||
fi
|
||||
|
||||
if ! [[ "$size" =~ ^([1-9][0-9]*)?$ ]]; then
|
||||
echo "Invalid size $size, must be a positive number"
|
||||
echo "Invalid size $size, must be empty or a positive number"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue