Only allow exactly 2 arguments in btrfs-snapshot-compare
This commit is contained in:
parent
e7bfbe250c
commit
071d3e0e01
|
@ -5,7 +5,7 @@ setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
|
|||
|
||||
autoload -U die
|
||||
|
||||
[[ ${ARGC} -lt 2 ]] && die 1 "Usage: ${0} <old> <new>"
|
||||
[[ ${ARGC} -ne 2 ]] && die 1 "Usage: ${0} <old> <new>"
|
||||
local old="${1}"
|
||||
local new="${2}"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user