Skip to content

Commit

Permalink
v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Antynea committed Jun 2, 2015
1 parent 91e72f6 commit 5e8c722
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 41_snapshots-btrfs
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ params="$GRUB_CMDLINE_LINUX $GRUB_CMDLINE_LINUX_DEFAULT"
typeset -A date_time
unset snapshots

# Create list of filesystem snapshots
oldIFS=$IFS
IFS=$'\n'

# Create list of filesystem snapshots
for snap in $($bindir/btrfs subvolume list -sa / --sort=-ogen | $bindir/awk '{gsub(/^["<FS_TREE>/"]+/,"",$NF);print $11" "$12"?"$NF}'); do
snap_name="${snap#*"?"}"
# en: Discard deleted snapshots
# Discard deleted snapshots
if [ $snap_name = "DELETED" ]; then continue; fi
snapshots+=("$snap_name")
date_time[$snap_name]="${snap%"?"*}"
Expand Down

0 comments on commit 5e8c722

Please sign in to comment.