Changed && to ;

This commit is contained in:
PedoDeveloper 2024-11-13 11:50:03 +00:00
parent 596426e5a8
commit 5d9436d92c

View file

@ -17,8 +17,8 @@ check_input() {
local password="$2"
local size="$3"
[[ -e "$input_file" ]] || { log "ERROR" "Input file '${input_file}' does not exist" && exit 2 ;}
[[ -n "${password}" ]] || { log "ERROR" "No password given" && exit 2 ;}
[[ -e "$input_file" ]] || { log "ERROR" "Input file '${input_file}' does not exist"; exit 2; }
[[ -n "${password}" ]] || { log "ERROR" "No password given"; exit 2; }
if [[ ! "$size" =~ ^([1-9][0-9]*)?$ ]]; then
log "ERROR" "Invalid size '$size', must be empty or a positive number"