Minor code cleanup

This commit is contained in:
PedoDeveloper 2024-11-11 13:03:48 +00:00
parent 0c351f42ae
commit 0b438f91ba

View file

@ -30,14 +30,10 @@ check_input() {
if [[ ! -e "${input_file}" ]]; then
echo "ERROR: Input file '${input_file}' does not exist"
exit 2
fi
if [[ -z "${archive_pwd}" ]]; then
elif [[ -z "${archive_pwd}" ]]; then
echo "ERROR: No password given"
exit 2
fi
if ! [[ "$size" =~ ^([1-9][0-9]*)?$ ]]; then
elif [[ ! "$size" =~ ^([1-9][0-9]*)?$ ]]; then
echo "Invalid size $size, must be empty or a positive number"
exit 2
fi