Changed && to ;
This commit is contained in:
parent
596426e5a8
commit
5d9436d92c
1 changed files with 2 additions and 2 deletions
|
|
@ -17,8 +17,8 @@ check_input() {
|
||||||
local password="$2"
|
local password="$2"
|
||||||
local size="$3"
|
local size="$3"
|
||||||
|
|
||||||
[[ -e "$input_file" ]] || { log "ERROR" "Input file '${input_file}' does not exist" && 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 ;}
|
[[ -n "${password}" ]] || { log "ERROR" "No password given"; exit 2; }
|
||||||
|
|
||||||
if [[ ! "$size" =~ ^([1-9][0-9]*)?$ ]]; then
|
if [[ ! "$size" =~ ^([1-9][0-9]*)?$ ]]; then
|
||||||
log "ERROR" "Invalid size '$size', must be empty or a positive number"
|
log "ERROR" "Invalid size '$size', must be empty or a positive number"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue