From 071d3e0e01925c44d15c527a50ef13ab9c9e9aa9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 3 Apr 2022 07:00:31 +0200 Subject: [PATCH] Only allow exactly 2 arguments in btrfs-snapshot-compare --- .config/zsh/functions/btrfs-snapshot-compare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/functions/btrfs-snapshot-compare b/.config/zsh/functions/btrfs-snapshot-compare index 21d05a1..3211fb9 100755 --- a/.config/zsh/functions/btrfs-snapshot-compare +++ b/.config/zsh/functions/btrfs-snapshot-compare @@ -5,7 +5,7 @@ setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL autoload -U die -[[ ${ARGC} -lt 2 ]] && die 1 "Usage: ${0} " +[[ ${ARGC} -ne 2 ]] && die 1 "Usage: ${0} " local old="${1}" local new="${2}"