From b50ad439d4c28e7d16ef9171a9ec2d925aa0bf42 Mon Sep 17 00:00:00 2001 From: Antynea Date: Wed, 16 Sep 2020 16:17:06 +0200 Subject: [PATCH] clean code * root_grub="$(make_system_path_relative_to_its_root /boot/$grub_directory)" no longer used --- 41_snapshots-btrfs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index 7ddd331..431c33a 100755 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -458,7 +458,7 @@ boot_bounded() name_microcode=("${list_ucode[@]##*"/"}") # show snapshot found during run "grub-mkconfig" if [[ "${show_snap_found}" = "true" ]]; then - printf $"Found snapshot: %s\n" "$item" >&2 ; + printf "Found snapshot: %s\n" "$item" >&2 ; fi # Show full path snapshot or only name path_snapshot @@ -509,7 +509,7 @@ boot_separate() snap_date_time="$(trim "$snap_date_time")" # show snapshot found during run "grub-mkconfig" if [[ "${show_snap_found}" = "true" ]]; then - printf $"Found snapshot: %s\n" "$item" >&2 ; + printf "Found snapshot: %s\n" "$item" >&2 ; fi # Show full path snapshot or only name path_snapshot @@ -568,7 +568,6 @@ fi if [[ "${count_limit_snap}" = "0" || -z "${count_limit_snap}" ]]; then print_error "No snapshots found." fi -root_grub="$(make_system_path_relative_to_its_root /boot/$grub_directory)" # Make a submenu in GRUB (grub.cfg) cat << EOF submenu '${submenuname}' ${protection_authorized_users}${unrestricted_access_submenu}{