Allow ignoring precise paths or names, fixes #90

This commit is contained in:
Maxim Baz
2020-07-17 23:19:26 +02:00
parent 6ff1fc7127
commit 18c6eebf31

View File

@@ -270,7 +270,7 @@ snapshot_list()
# ignore specific path during run "grub-mkconfig"
if [ ! -z "${ignore_specific_path}" ] ; then
for isp in ${ignore_specific_path[@]} ; do
[[ "${snap_path_name}" == "${isp}"/* ]] && continue 2;
[[ "${snap_path_name}" == "${isp}" || "${snap_path_name}" == "${isp}"/* ]] && continue 2;
done
fi