mirror of
https://github.com/zfsonlinux/zfs-auto-snapshot.git
synced 2025-08-11 05:44:12 +02:00
Revert PR85
This commit is contained in:
@ -440,16 +440,12 @@ do
|
|||||||
# Just testing "$ii" != ${ii#$jj} would incorrectly match.
|
# Just testing "$ii" != ${ii#$jj} would incorrectly match.
|
||||||
iii="$ii/"
|
iii="$ii/"
|
||||||
|
|
||||||
# Exclude datasets
|
|
||||||
# * that are not named on the command line or
|
# Exclude datasets that are not named on the command line.
|
||||||
# * 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
|
||||||
if [ "$jj" = '//' -o "$jj" = "$ii" ]
|
if [ "$jj" = '//' -o "$jj" = "$ii" ]
|
||||||
then
|
|
||||||
IN_ARGS=$(( $IN_ARGS + 1 ))
|
|
||||||
elif [ -n "$opt_recursive" -a "$iii" != "${iii#$jj}" ]
|
|
||||||
then
|
then
|
||||||
IN_ARGS=$(( $IN_ARGS + 1 ))
|
IN_ARGS=$(( $IN_ARGS + 1 ))
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user