From 363d7da3a782243cd4cd31f8b3a48b7d1b2370a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20J=C3=A4ger?= Date: Wed, 6 Mar 2024 14:23:26 +0100 Subject: [PATCH] fix typo uper -> upper --- 41_snapshots-btrfs | 4 ++-- config | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index 8aebd2c..2de22d4 100755 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -75,7 +75,7 @@ while getopts :V-: opt; do done ## Exit the script, if: -[ "$(echo "$GRUB_BTRFS_DISABLE" | tr '[:uper:]' '[:lower:]')" = 'true' ] && print_error "GRUB_BTRFS_DISABLE is set to true (default=false)" +[ "$(echo "$GRUB_BTRFS_DISABLE" | tr '[:upper:]' '[:lower:]')" = 'true' ] && print_error "GRUB_BTRFS_DISABLE is set to true (default=false)" if ! type btrfs >/dev/null 2>&1; then print_error "btrfs-progs isn't installed"; fi [ -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" [[ "$(btrfs filesystem df / 2>&1)" == *"not a btrfs filesystem"* ]] && print_error "Root filesystem isn't btrfs" @@ -581,7 +581,7 @@ count_warning_menuentries=0 # Count menuentries count_limit_snap=0 # Count snapshots check_uuid_required # Detects if /boot is a separate partition -[ "$(echo "$GRUB_BTRFS_OVERRIDE_BOOT_PARTITION_DETECTION}" | tr '[:uper:]' '[:lower:]')" = "true" ] && printf "Override boot partition detection : enable \n" >&2 && boot_separate; +[ "$(echo "$GRUB_BTRFS_OVERRIDE_BOOT_PARTITION_DETECTION}" | tr '[:upper:]' '[:lower:]')" = "true" ] && printf "Override boot partition detection : enable \n" >&2 && boot_separate; if [ "$root_uuid" != "$boot_uuid" ] || [ "$root_uuid_subvolume" != "$boot_uuid_subvolume" ]; then boot_separate ; else boot_bounded ; fi # Make a submenu in GRUB (grub.cfg) cat << EOF diff --git a/config b/config index 2d2c388..54060c7 100644 --- a/config +++ b/config @@ -1,7 +1,7 @@ #!/usr/bin/env bash -GRUB_BTRFS_VERSION=4.12-master-2023-04-28T16:26:00+00:00 +GRUB_BTRFS_VERSION=4.13-fix_bashism-2024-03-06T13:23:26+00:00 # Disable grub-btrfs. # Default: "false"