From 8302acc34df71957547d33dda1c4b433b3f378ba Mon Sep 17 00:00:00 2001 From: Reynegton Pinheiro Nunes Date: Mon, 6 Jul 2026 13:17:54 -0300 Subject: [PATCH] Fix: Replace Perl-compatible \s with POSIX [ \t] in awk expressions for mawk compatibility --- 41_snapshots-btrfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index f7d2bd6..1701e12 100755 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -131,7 +131,7 @@ fi # Root subvolume UUID root_uuid_subvolume="$(btrfs subvolume show / 2>/dev/null | \ - awk -F':' '/^\s*UUID/ {gsub(/^[ \t]+/, "", $2); print $2}')" + awk -F':' '/^[ \t]*UUID/ {gsub(/^[ \t]+/, "", $2); print $2}')" [ -z "$root_uuid_subvolume" ] && print_error "UUID of the root subvolume is not available" # ---------- Boot partition ---------- @@ -147,7 +147,7 @@ fi # If /boot is not a Btrfs subvolume, reuse root subvol UUID boot_uuid_subvolume="$( btrfs subvolume show "${boot_directory}" 2>/dev/null | \ - awk -F':' '/^\s*UUID/ {gsub(/^[ \t]+/, "", $2); print $2; exit}' + awk -F':' '/^[ \t]*UUID/ {gsub(/^[ \t]+/, "", $2); print $2; exit}' )" [ -z "$boot_uuid_subvolume" ] && boot_uuid_subvolume="$root_uuid_subvolume"