Skip to content

Commit e929a4b

Browse files
authored
Use print_info for "Detecting snapshots" message
The "Detecting snapshots ..." message was still a bare printf and bypassed the logging helpers added in #435. Use print_info so it carries the "grub-btrfs:" prefix; the trailing newline is handled by the helper.
1 parent eb87f51 commit e929a4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎41_snapshots-btrfs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if ! type btrfs >/dev/null 2>&1; then print_info "btrfs-progs isn't installed";
8989
[ -f "${GRUB_BTRFS_MKCONFIG_LIB:-/usr/share/grub/grub-mkconfig_lib}" ] && . "${GRUB_BTRFS_MKCONFIG_LIB:-/usr/share/grub/grub-mkconfig_lib}" || print_error "grub-mkconfig_lib couldn't be found"
9090
[[ "$(btrfs filesystem df / 2>&1)" == *"not a btrfs filesystem"* ]] && { print_info "Root filesystem isn't btrfs"; exit 0; }
9191

92-
printf "Detecting snapshots ...\n" >&2 ;
92+
print_info "Detecting snapshots ..."
9393

9494
## Submenu name
9595
distro=$(awk -F "=" '/^NAME=/ {gsub(/"/, "", $2); print $2}' /etc/os-release) # escape '

0 commit comments

Comments
 (0)