diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index 429e9f4..ab22278 100644 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -45,7 +45,7 @@ unset snapshots oldIFS=$IFS IFS=$'\n' -for snap in $($bindir/btrfs subvolume list -sa / --sort=-ogen | $bindir/awk '{gsub(/^["/"]+/,"",$NF);print $11" "$12"?"$NF}'); do +for snap in $($bindir/btrfs subvolume list -sa / --sort=-ogen | $bindir/awk '{gsub(/^.*\//,"",$NF);print $11" "$12"?"$NF}'); do snap_name="${snap#*"?"}" # Discard deleted snapshots if [ $snap_name = "DELETED" ]; then continue; fi