Fix jjj vs jj bug in recursive snapshot selection

This commit is contained in:
Phil Kulin 2018-07-12 13:03:07 +03:00
parent 6c7da10e24
commit 6ee4553cf6

View File

@ -442,10 +442,15 @@ do
iii="$ii/"
# Exclude datasets that are not named on the command line.
# Exclude datasets
# * that are not named on the command line or
# * those whose prefix is not on the command line (if --recursive flag is set)
IN_ARGS='0'
for jj in "$@"
do
# Ibid regarding iii.
jjj="$jj/"
if [ "$jj" = '//' -o "$jj" = "$ii" ]
then
IN_ARGS=$(( $IN_ARGS + 1 ))