From 59164367e7fc05efd6845d2c815e2f73b0b51169 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Sat, 19 Mar 2016 08:11:47 -0500 Subject: [PATCH] cleanup --- 41_snapshots-btrfs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index b18e045..aae0b35 100644 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -73,10 +73,7 @@ ninit=("${GRUB_BTRFS_NINIT[@]}") ## Microcode(s) name(s) microcode=("${GRUB_BTRFS_INTEL_UCODE[@]}") ## Limit to show in menu -limit=("${GRUB_BTRFS_LIMIT[@]}") -if [ -z "$limit" ]; then - limit=100 -fi +limit=("${GRUB_BTRFS_LIMIT[@]:-100}") ######################## ### variables script ### @@ -161,7 +158,7 @@ snapshots_entry() ## List of snapshots on filesystem snapshot_list() { - for snap in $(btrfs subvolume list -sa / | tac); do + for snap in $(btrfs subvolume list -sa --sort=-rootid /); do IFS=$oldIFS snap=($snap) local snap_path_name=${snap[@]:13:${#snap[@]}}