1
0
Fork 0

Only allow exactly 2 arguments in btrfs-snapshot-compare

This commit is contained in:
tastytea 2022-04-03 07:00:31 +02:00
parent e7bfbe250c
commit 071d3e0e01
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 1 deletions

View File

@ -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}"