Skip to content

Commit 94d742d

Browse files
authored
Merge pull request #311 from bastien-roucaries/fix_bashism
Fix bashism
2 parents ac45f09 + 363d7da commit 94d742d

File tree

2 files changed

+50
-50
lines changed

2 files changed

+50
-50
lines changed

41_snapshots-btrfs

+49-49
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ set -e
4141
sysconfdir="/etc"
4242
grub_btrfs_config="${sysconfdir}/default/grub-btrfs/config"
4343

44-
[[ -f "$grub_btrfs_config" ]] && . "$grub_btrfs_config"
45-
[[ -f "${sysconfdir}/default/grub" ]] && . "${sysconfdir}/default/grub"
44+
[ -f "$grub_btrfs_config" ] && . "$grub_btrfs_config"
45+
[ -f "${sysconfdir}/default/grub" ] && . "${sysconfdir}/default/grub"
4646

4747
## Error Handling
4848
print_error()
@@ -75,15 +75,15 @@ while getopts :V-: opt; do
7575
done
7676

7777
## Exit the script, if:
78-
[[ "${GRUB_BTRFS_DISABLE,,}" == "true" ]] && print_error "GRUB_BTRFS_DISABLE is set to true (default=false)"
78+
[ "$(echo "$GRUB_BTRFS_DISABLE" | tr '[:upper:]' '[:lower:]')" = 'true' ] && print_error "GRUB_BTRFS_DISABLE is set to true (default=false)"
7979
if ! type btrfs >/dev/null 2>&1; then print_error "btrfs-progs isn't installed"; fi
80-
[[ -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"
80+
[ -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"
8181
[[ "$(btrfs filesystem df / 2>&1)" == *"not a btrfs filesystem"* ]] && print_error "Root filesystem isn't btrfs"
8282

8383
printf "Detecting snapshots ...\n" >&2 ;
8484

8585
## Submenu name
86-
distro=$(awk -F "=" '/^NAME=/ {gsub(/"/, "", $2); print $2}' /etc/os-release)
86+
distro=$(awk -F "=" '/^NAME=/ {gsub(/"/, "", $2); print $2}' /etc/os-release) # escape '
8787
submenuname=${GRUB_BTRFS_SUBMENUNAME:-"${distro:-Linux} snapshots"}
8888
## Limit snapshots to show in the Grub menu (default=50)
8989
limit_snap_show="${GRUB_BTRFS_LIMIT:-50}"
@@ -99,7 +99,7 @@ grub_btrfs_directory=${GRUB_BTRFS_GBTRFS_DIRNAME:-${grub_directory}}
9999
grub_btrfs_search_directory=${GRUB_BTRFS_GBTRFS_SEARCH_DIRNAME:-"\${prefix}"}
100100
## Password protection management for submenu
101101
# Protection support for submenu (--unrestricted)
102-
case "${GRUB_BTRFS_DISABLE_PROTECTION_SUBMENU,,}" in
102+
case "$(echo "$GRUB_BTRFS_DISABLE_PROTECTION_SUBMENU" | tr '[:upper:]' '[:lower:]')" in
103103
true) unrestricted_access_submenu="--unrestricted ";;
104104
*) unrestricted_access_submenu=""
105105
esac
@@ -111,16 +111,16 @@ fi
111111
## Probe information of Root and Boot devices
112112
# Probe info "Root partition"
113113
root_device=$(${grub_probe} --target=device /) # Root device
114-
root_uuid=$(${grub_probe} --device ${root_device} --target="fs_uuid" 2>/dev/null) # UUID of the root device
114+
root_uuid=$(${grub_probe} --device "${root_device}" --target="fs_uuid" 2>/dev/null) # UUID of the root device
115115
root_uuid_subvolume=$(btrfs subvolume show / 2>/dev/null) || print_error "UUID of the root subvolume is not available"; # If UUID of root subvolume is not available, then exit
116-
root_uuid_subvolume=$(awk -F":" 'match($1, /(^[ \t]+UUID)/) {sub(/^[ \t]+/, "", $2); print $2}' <<< "$root_uuid_subvolume") # UUID of the root subvolume
116+
root_uuid_subvolume=$(awk -F":" 'match($1, /(^[ \t]+UUID)/) {sub(/^[ \t]+/, "", $2); print $2}' <<< "$root_uuid_subvolume") # UUID of the root subvolume '
117117
# Probe info "Boot partition"
118-
boot_device=$(${grub_probe} --target=device ${boot_directory}) # Boot device
119-
boot_uuid=$(${grub_probe} --device ${boot_device} --target="fs_uuid" 2>/dev/null) # UUID of the boot device
118+
boot_device=$(${grub_probe} --target=device "${boot_directory}") # Boot device
119+
boot_uuid=$(${grub_probe} --device "${boot_device}" --target="fs_uuid" 2>/dev/null) # UUID of the boot device
120120
boot_uuid_subvolume=$(btrfs subvolume show "$boot_directory" 2>/dev/null) || boot_uuid_subvolume=" UUID: $root_uuid_subvolume"; # If boot folder isn't a subvolume, then UUID=root_uuid_subvolume
121-
boot_uuid_subvolume=$(awk -F":" 'match($1, /(^[ \t]+UUID)/) {sub(/^[ \t]+/, "", $2); print $2}' <<< "$boot_uuid_subvolume") # UUID of the boot subvolume
122-
boot_hs=$(${grub_probe} --device ${boot_device} --target="hints_string" 2>/dev/null) # hints string
123-
boot_fs=$(${grub_probe} --device ${boot_device} --target="fs" 2>/dev/null) # Type filesystem of boot device
121+
boot_uuid_subvolume=$(awk -F":" 'match($1, /(^[ \t]+UUID)/) {sub(/^[ \t]+/, "", $2); print $2}' <<< "$boot_uuid_subvolume") # UUID of the boot subvolume '
122+
boot_hs=$(${grub_probe} --device "${boot_device}" --target="hints_string" 2>/dev/null) # hints string
123+
boot_fs=$(${grub_probe} --device "${boot_device}" --target="fs" 2>/dev/null) # Type filesystem of boot device
124124

125125
## Parameters passed to the kernel
126126
kernel_parameters="$GRUB_CMDLINE_LINUX $GRUB_CMDLINE_LINUX_DEFAULT $GRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS"
@@ -150,7 +150,7 @@ detect_rootflags()
150150

151151
unmount_grub_btrfs_mount_point()
152152
{
153-
if [[ -d "$grub_btrfs_mount_point" ]]; then
153+
if [ -d "$grub_btrfs_mount_point" ]; then
154154
local wait=true
155155
local wait_max=0
156156
printf "Unmount %s .." "$grub_btrfs_mount_point" >&2;
@@ -160,7 +160,7 @@ if [[ -d "$grub_btrfs_mount_point" ]]; then
160160
if umount "$grub_btrfs_mount_point" >/dev/null 2>&1; then
161161
wait=false # umount successful
162162
printf " Success\n" >&2;
163-
elif [[ $wait_max = 10 ]]; then
163+
elif [ $wait_max -eq 10 ]; then
164164
printf "\nWarning: Unable to unmount %s in %s\n" "$root_device" "$grub_btrfs_mount_point" >&2;
165165
break;
166166
else
@@ -172,7 +172,7 @@ if [[ -d "$grub_btrfs_mount_point" ]]; then
172172
printf " Success\n" >&2;
173173
fi
174174
done
175-
if [[ "$wait" != true ]]; then
175+
if [ "$wait" != true ]; then
176176
if ! rm -d "$grub_btrfs_mount_point" >/dev/null 2>&1; then
177177
printf "Unable to delete %s: Device or resource is busy\n" "$grub_btrfs_mount_point" >&2;
178178
fi
@@ -193,10 +193,10 @@ make_menu_entries()
193193
entry "submenu '${title_menu}' {
194194
submenu '${title_submenu}' { echo }"
195195
for k in "${name_kernel[@]}"; do
196-
[[ ! -f "${boot_dir}"/"${k}" ]] && continue;
196+
[ ! -f "${boot_dir}"/"${k}" ] && continue;
197197
kversion=${k#*"-"}
198198
for i in "${name_initramfs[@]}"; do
199-
if [[ "${name_initramfs}" != "x" ]] ; then
199+
if [ "${name_initramfs}" != "x" ] ; then
200200
# prefix_i=${i%%"-"*}
201201
suffix_i=${i#*"-"}
202202
# alt_suffix_i=${i##*"-"}
@@ -207,7 +207,7 @@ make_menu_entries()
207207
else continue;
208208
fi
209209
for u in "${name_microcode[@]}"; do
210-
if [[ "${name_microcode}" != "x" ]] ; then
210+
if [ "${name_microcode}" != "x" ] ; then
211211
entry "
212212
menuentry ' "${k}" & "${i}" & "${u}"' ${CLASS} "\$menuentry_id_option" 'gnulinux-snapshots-$boot_uuid' {"
213213
else
@@ -228,7 +228,7 @@ make_menu_entries()
228228
echo 'Loading Snapshot: "${snap_date_trim}" "${snap_dir_name_trim}"'
229229
echo 'Loading Kernel: "${k}" ...'
230230
linux \"${boot_dir_root_grub}/"${k}"\" root="${LINUX_ROOT_DEVICE}" ${kernel_parameters} ${rootflags}subvol=\""${snap_dir_name_trim}"\""
231-
if [[ "${name_microcode}" != "x" ]] ; then
231+
if [ "${name_microcode}" != "x" ] ; then
232232
entry "\
233233
echo 'Loading Microcode & Initramfs: "${u}" "${i}" ...'
234234
initrd \"${boot_dir_root_grub}/"${u}"\" \"${boot_dir_root_grub}/"${i}"\""
@@ -242,7 +242,7 @@ make_menu_entries()
242242
done
243243
else
244244
for u in "${name_microcode[@]}"; do
245-
if [[ "${name_microcode}" != "x" ]] ; then
245+
if [ "${name_microcode}" != "x" ] ; then
246246
entry "
247247
menuentry ' "${k}" & "${u}"' ${CLASS} "\$menuentry_id_option" 'gnulinux-snapshots-$boot_uuid' {"
248248
else
@@ -263,7 +263,7 @@ make_menu_entries()
263263
echo 'Loading Snapshot: "${snap_date_trim}" "${snap_dir_name_trim}"'
264264
echo 'Loading Kernel: "${k}" ...'
265265
linux \"${boot_dir_root_grub}/"${k}"\" root="${LINUX_ROOT_DEVICE}" ${kernel_parameters} ${rootflags}subvol=\""${snap_dir_name_trim}"\""
266-
if [[ "${name_microcode}" != "x" ]] ; then
266+
if [ "${name_microcode}" != "x" ] ; then
267267
entry "\
268268
echo 'Loading Microcode: "${u}" ...'
269269
initrd \"${boot_dir_root_grub}/"${u}"\""
@@ -305,15 +305,15 @@ snapshot_list()
305305
# ignore specific path during run "grub-mkconfig"
306306
if [ -n "${GRUB_BTRFS_IGNORE_SPECIFIC_PATH}" ] ; then
307307
for isp in "${GRUB_BTRFS_IGNORE_SPECIFIC_PATH[@]}" ; do
308-
[[ "${path_snapshot}" == "${isp}" ]] && continue 2;
308+
[ "${path_snapshot}" = "${isp}" ] && continue 2;
309309
done
310310
fi
311311
if [ -n "${GRUB_BTRFS_IGNORE_PREFIX_PATH}" ] ; then
312312
for isp in "${GRUB_BTRFS_IGNORE_PREFIX_PATH[@]}" ; do
313313
[[ "${path_snapshot}" == "${isp}"/* ]] && continue 2;
314314
done
315315
fi
316-
[[ ! -d "$grub_btrfs_mount_point/$path_snapshot/boot" ]] && continue; # Discard snapshots without /boot folder
316+
[ ! -d "$grub_btrfs_mount_point/$path_snapshot/boot" ] && continue; # Discard snapshots without /boot folder
317317

318318
# Parse Snapper & timeshift information
319319
local type_snapshot="N/A"
@@ -323,20 +323,20 @@ snapshot_list()
323323
description_snapshot=$(awk -F"<|>" 'match($2, /^description/) {print $3}' "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$snapper_info") # search matching string beginning "description"
324324
elif [[ -s "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$timeshift_info" ]] ; then
325325
type_snapshot=$(awk -F" : " 'match($1, /^[ \t]+"tags"/) {gsub(/"|,/,"");print $2}' "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$timeshift_info") # search matching string beginning "tags"
326-
description_snapshot=$(awk -F" : " 'match($1, /^[ \t]+"comments"/) {gsub(/"|,/,"");print $2}' "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$timeshift_info") # search matching string beginning "comments"
326+
description_snapshot=$(awk -F" : " 'match($1, /^[ \t]+"comments"/) {gsub(/"|,/,"");print $2}' "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$timeshift_info") # search matching string beginning "comments" fix '
327327
fi
328-
[[ -z "$type_snapshot" ]] && type_snapshot=("N/A")
329-
[[ -z "$description_snapshot" ]] && description_snapshot=("N/A")
328+
[ -z "$type_snapshot" ] && type_snapshot=("N/A")
329+
[ -z "$description_snapshot" ] && description_snapshot=("N/A")
330330

331331
# ignore specific {type,tag,description} of snapshot during run "grub-mkconfig"
332332
if [ -n "${GRUB_BTRFS_IGNORE_SNAPSHOT_TYPE}" ] ; then
333333
for ist in "${GRUB_BTRFS_IGNORE_SNAPSHOT_TYPE[@]}" ; do
334-
[[ "${type_snapshot}" == "${ist}" ]] && continue 2;
334+
[ "${type_snapshot}" = "${ist}" ] && continue 2;
335335
done
336336
fi
337337
if [ -n "${GRUB_BTRFS_IGNORE_SNAPSHOT_DESCRIPTION}" ] ; then
338338
for isd in "${GRUB_BTRFS_IGNORE_SNAPSHOT_DESCRIPTION[@]}" ; do
339-
[[ "${description_snapshot}" == "${isd}" ]] && continue 2;
339+
[ "${description_snapshot}" = "${isd}" ] && continue 2;
340340
done
341341
fi
342342

@@ -351,21 +351,21 @@ snapshot_list()
351351
local max_date_length=0
352352
for i in "${date_snapshots[@]}"; do
353353
local length="${#i}"
354-
[[ "$length" -gt "$max_date_length" ]] && max_date_length=$length
354+
[ "$length" -gt "$max_date_length" ] && max_date_length=$length
355355
done
356356

357357
# Find max length of a snapshot name, needed for pretty formatting
358358
local max_path_length=0
359359
for i in "${path_snapshots[@]}"; do
360360
local length="${#i}"
361-
[[ "$length" -gt "$max_path_length" ]] && max_path_length=$length
361+
[ "$length" -gt "$max_path_length" ] && max_path_length=$length
362362
done
363363

364364
# Find max length of a snapshot type, needed for pretty formatting
365365
local max_type_length=0
366366
for i in "${type_snapshots[@]}"; do
367367
local length="${#i}"
368-
[[ "$length" -gt "$max_type_length" ]] && max_type_length=$length
368+
[ "$length" -gt "$max_type_length" ] && max_type_length=$length
369369
done
370370

371371
# Find max length of a snapshot description, needed for pretty formatting
@@ -406,14 +406,14 @@ detect_kernel()
406406
for okernel in "${boot_dir}"/vmlinuz-* \
407407
"${boot_dir}"/vmlinux-* \
408408
"${boot_dir}"/kernel-* ; do
409-
[[ ! -f "${okernel}" ]] && continue;
409+
[ ! -f "${okernel}" ] && continue;
410410
list_kernel+=("$okernel")
411411
done
412412

413413
# Custom name kernel in "GRUB_BTRFS_NKERNEL"
414414
if [ -n "${GRUB_BTRFS_NKERNEL}" ] ; then
415415
for ckernel in "${boot_dir}/${GRUB_BTRFS_NKERNEL[@]}" ; do
416-
[[ ! -f "${ckernel}" ]] && continue;
416+
[ ! -f "${ckernel}" ] && continue;
417417
list_kernel+=("$ckernel")
418418
done
419419
fi
@@ -427,14 +427,14 @@ detect_initramfs()
427427
for oinitramfs in "${boot_dir}"/initrd.img-* \
428428
"${boot_dir}"/initramfs-* \
429429
"${boot_dir}"/initrd-* ; do
430-
[[ ! -f "${oinitramfs}" ]] && continue;
430+
[ ! -f "${oinitramfs}" ] && continue;
431431
list_initramfs+=("$oinitramfs")
432432
done
433433

434434
# Custom name initramfs in "GRUB_BTRFS_NINIT"
435435
if [ -n "${GRUB_BTRFS_NINIT}" ] ; then
436436
for cinitramfs in "${boot_dir}/${GRUB_BTRFS_NINIT[@]}" ; do
437-
[[ ! -f "${cinitramfs}" ]] && continue;
437+
[ ! -f "${cinitramfs}" ] && continue;
438438
list_initramfs+=("$cinitramfs")
439439
done
440440
fi
@@ -453,7 +453,7 @@ detect_microcode()
453453
"${boot_dir}"/amd-ucode.img \
454454
"${boot_dir}"/early_ucode.cpio \
455455
"${boot_dir}"/microcode.cpio; do
456-
[[ ! -f "${oiucode}" ]] && continue;
456+
[ ! -f "${oiucode}" ] && continue;
457457
list_ucode+=("$oiucode")
458458
done
459459

@@ -509,7 +509,7 @@ boot_bounded()
509509
# Initialize menu entries
510510
IFS=$'\n'
511511
for item in $(snapshot_list); do
512-
[[ ${limit_snap_show} -le 0 ]] && break; # fix: limit_snap_show=0
512+
[ "${limit_snap_show}" -le 0 ] && break; # fix: limit_snap_show=0
513513
IFS=$oldIFS
514514
parse_snapshot_list
515515
boot_dir="$grub_btrfs_mount_point/$snap_dir_name_trim$boot_directory"
@@ -525,12 +525,12 @@ boot_bounded()
525525
boot_dir_root_grub="$(make_system_path_relative_to_its_root "${boot_dir}")" # convert "boot_directory" to root of GRUB (e.g /boot become /)
526526
make_menu_entries
527527
# show snapshot found during run "grub-mkconfig"
528-
if [[ "${GRUB_BTRFS_SHOW_SNAPSHOTS_FOUND:-"true"}" = "true" ]]; then
528+
if [ "${GRUB_BTRFS_SHOW_SNAPSHOTS_FOUND:-"true"}" = "true" ]; then
529529
printf "Found snapshot: %s\n" "$item" >&2 ;
530530
fi
531531
# Limit snapshots found during run "grub-mkconfig"
532532
count_limit_snap=$((1+count_limit_snap))
533-
[[ $count_limit_snap -ge $limit_snap_show ]] && break;
533+
[ "$count_limit_snap" -ge "$limit_snap_show" ] && break;
534534
done
535535
IFS=$oldIFS
536536
}
@@ -550,19 +550,19 @@ boot_separate()
550550
# Initialize menu entries
551551
IFS=$'\n'
552552
for item in $(snapshot_list); do
553-
[[ ${limit_snap_show} -le 0 ]] && break; # fix: limit_snap_show=0
553+
[ "${limit_snap_show}" -le 0 ] && break; # fix: limit_snap_show=0
554554
IFS=$oldIFS
555555
parse_snapshot_list
556556
detect_rootflags
557557
title_format
558558
make_menu_entries
559559
# show snapshot found during run "grub-mkconfig"
560-
if [[ "${GRUB_BTRFS_SHOW_SNAPSHOTS_FOUND:-"true"}" = "true" ]]; then
560+
if [ "${GRUB_BTRFS_SHOW_SNAPSHOTS_FOUND:-"true"}" = "true" ]; then
561561
printf "Found snapshot: %s\n" "$item" >&2 ;
562562
fi
563563
# Limit snapshots found during run "grub-mkconfig"
564564
count_limit_snap=$((1+count_limit_snap))
565-
[[ $count_limit_snap -ge $limit_snap_show ]] && break;
565+
[ "$count_limit_snap" -ge "$limit_snap_show" ] && break;
566566
done
567567
IFS=$oldIFS
568568
}
@@ -574,15 +574,15 @@ if [ -e "$grub_btrfs_directory/grub-btrfs.cfg" ]; then
574574
mv -f "$grub_btrfs_directory/grub-btrfs.cfg" "$grub_btrfs_directory/grub-btrfs.cfg.bkp"
575575
fi
576576
# Create mount point then mounting
577-
[[ ! -d $grub_btrfs_mount_point ]] && mkdir -p "$grub_btrfs_mount_point"
577+
[ ! -d "$grub_btrfs_mount_point" ] && mkdir -p "$grub_btrfs_mount_point"
578578
mount -o ro,subvolid=5 /dev/disk/by-uuid/"$root_uuid" "$grub_btrfs_mount_point/" > /dev/null
579579
trap "unmount_grub_btrfs_mount_point" EXIT # unmounting mount point on EXIT signal
580580
count_warning_menuentries=0 # Count menuentries
581581
count_limit_snap=0 # Count snapshots
582582
check_uuid_required
583583
# Detects if /boot is a separate partition
584-
[[ "${GRUB_BTRFS_OVERRIDE_BOOT_PARTITION_DETECTION,,}" == "true" ]] && printf "Override boot partition detection : enable \n" >&2 && boot_separate;
585-
if [[ "$root_uuid" != "$boot_uuid" ]] || [[ "$root_uuid_subvolume" != "$boot_uuid_subvolume" ]]; then boot_separate ; else boot_bounded ; fi
584+
[ "$(echo "$GRUB_BTRFS_OVERRIDE_BOOT_PARTITION_DETECTION}" | tr '[:upper:]' '[:lower:]')" = "true" ] && printf "Override boot partition detection : enable \n" >&2 && boot_separate;
585+
if [ "$root_uuid" != "$boot_uuid" ] || [ "$root_uuid_subvolume" != "$boot_uuid_subvolume" ]; then boot_separate ; else boot_bounded ; fi
586586
# Make a submenu in GRUB (grub.cfg)
587587
cat << EOF
588588
if [ ! -e "${grub_btrfs_search_directory}/grub-btrfs.cfg" ]; then
@@ -594,13 +594,13 @@ submenu '${submenuname}' ${protection_authorized_users}${unrestricted_access_sub
594594
fi
595595
EOF
596596
# Show warn, menuentries exceeds 250 entries
597-
[[ $count_warning_menuentries -ge 250 ]] && printf "Generated %s total GRUB entries. You might experience issues loading snapshots menu in GRUB.\n" "${count_warning_menuentries}" >&2 ;
597+
[ $count_warning_menuentries -ge 250 ] && printf "Generated %s total GRUB entries. You might experience issues loading snapshots menu in GRUB.\n" "${count_warning_menuentries}" >&2 ;
598598
# Show total found snapshots
599-
if [[ "${GRUB_BTRFS_SHOW_TOTAL_SNAPSHOTS_FOUND:-"true"}" = "true" && -n "${count_limit_snap}" && "${count_limit_snap}" != "0" ]]; then
599+
if [ "${GRUB_BTRFS_SHOW_TOTAL_SNAPSHOTS_FOUND:-"true"}" = "true" ] && [ -n "${count_limit_snap}" ] && [ "${count_limit_snap}" != "0" ]; then
600600
printf "Found %s snapshot(s)\n" "${count_limit_snap}" >&2 ;
601601
fi
602602
# if no snapshot found, delete the "$grub_btrfs_directory/grub-btrfs.new" file and the "$grub_btrfs_directory/grub-btrfs.cfg.bkp" file and exit
603-
if [[ "${count_limit_snap}" = "0" || -z "${count_limit_snap}" ]]; then
603+
if [ "${count_limit_snap}" = "0" ] || [ -z "${count_limit_snap}" ]; then
604604
rm -f "$grub_btrfs_directory/grub-btrfs.new" "$grub_btrfs_directory/grub-btrfs.cfg.bkp"
605605
print_error "No snapshots found."
606606
fi

config

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33

4-
GRUB_BTRFS_VERSION=4.12-master-2023-04-28T16:26:00+00:00
4+
GRUB_BTRFS_VERSION=4.13-fix_bashism-2024-03-06T13:23:26+00:00
55

66
# Disable grub-btrfs.
77
# Default: "false"

0 commit comments

Comments
 (0)