mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2025-08-17 16:11:19 +02:00
Fix jjj vs jj bug in recursive snapshot selection
This commit is contained in:
@ -442,10 +442,15 @@ do
|
|||||||
iii="$ii/"
|
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'
|
IN_ARGS='0'
|
||||||
for jj in "$@"
|
for jj in "$@"
|
||||||
do
|
do
|
||||||
|
# Ibid regarding iii.
|
||||||
|
jjj="$jj/"
|
||||||
|
|
||||||
if [ "$jj" = '//' -o "$jj" = "$ii" ]
|
if [ "$jj" = '//' -o "$jj" = "$ii" ]
|
||||||
then
|
then
|
||||||
IN_ARGS=$(( $IN_ARGS + 1 ))
|
IN_ARGS=$(( $IN_ARGS + 1 ))
|
||||||
|
Reference in New Issue
Block a user