mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-08-24 01:03:15 +08:00
Allow ignoring precise paths or names, fixes #90
This commit is contained in:
@@ -270,7 +270,7 @@ snapshot_list()
|
|||||||
# ignore specific path during run "grub-mkconfig"
|
# ignore specific path during run "grub-mkconfig"
|
||||||
if [ ! -z "${ignore_specific_path}" ] ; then
|
if [ ! -z "${ignore_specific_path}" ] ; then
|
||||||
for isp in ${ignore_specific_path[@]} ; do
|
for isp in ${ignore_specific_path[@]} ; do
|
||||||
[[ "${snap_path_name}" == "${isp}"/* ]] && continue 2;
|
[[ "${snap_path_name}" == "${isp}" || "${snap_path_name}" == "${isp}"/* ]] && continue 2;
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user