Skip to content

Commit

Permalink
zfsbootmenu-ui: fix argument order when listing snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ahesford committed Dec 1, 2023
1 parent 3279dbd commit 23bdb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zfsbootmenu/lib/zfsbootmenu-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ draw_snapshots() {
expects="--expect=alt-x,alt-c,alt-j,alt-o,alt-n,alt-r,left,right"

# ${snapshots} must always be defined so that the mod-n handler can be executed
snapshots="$( zfs list -t snapshot -H -o name "${benv}" -S "${sort_key}" )"
snapshots="$( zfs list -t snapshot -H -o name -S "${sort_key}" "${benv}" )"
snapshots="${snapshots:-No snaphots available}"

zdebug "snapshots: ${snapshots[*]}"
Expand Down

0 comments on commit 23bdb71

Please sign in to comment.