mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-08-24 01:03:15 +08:00
clean code
* root_grub="$(make_system_path_relative_to_its_root /boot/$grub_directory)" no longer used
This commit is contained in:
@@ -458,7 +458,7 @@ boot_bounded()
|
|||||||
name_microcode=("${list_ucode[@]##*"/"}")
|
name_microcode=("${list_ucode[@]##*"/"}")
|
||||||
# show snapshot found during run "grub-mkconfig"
|
# show snapshot found during run "grub-mkconfig"
|
||||||
if [[ "${show_snap_found}" = "true" ]]; then
|
if [[ "${show_snap_found}" = "true" ]]; then
|
||||||
printf $"Found snapshot: %s\n" "$item" >&2 ;
|
printf "Found snapshot: %s\n" "$item" >&2 ;
|
||||||
fi
|
fi
|
||||||
# Show full path snapshot or only name
|
# Show full path snapshot or only name
|
||||||
path_snapshot
|
path_snapshot
|
||||||
@@ -509,7 +509,7 @@ boot_separate()
|
|||||||
snap_date_time="$(trim "$snap_date_time")"
|
snap_date_time="$(trim "$snap_date_time")"
|
||||||
# show snapshot found during run "grub-mkconfig"
|
# show snapshot found during run "grub-mkconfig"
|
||||||
if [[ "${show_snap_found}" = "true" ]]; then
|
if [[ "${show_snap_found}" = "true" ]]; then
|
||||||
printf $"Found snapshot: %s\n" "$item" >&2 ;
|
printf "Found snapshot: %s\n" "$item" >&2 ;
|
||||||
fi
|
fi
|
||||||
# Show full path snapshot or only name
|
# Show full path snapshot or only name
|
||||||
path_snapshot
|
path_snapshot
|
||||||
@@ -568,7 +568,6 @@ fi
|
|||||||
if [[ "${count_limit_snap}" = "0" || -z "${count_limit_snap}" ]]; then
|
if [[ "${count_limit_snap}" = "0" || -z "${count_limit_snap}" ]]; then
|
||||||
print_error "No snapshots found."
|
print_error "No snapshots found."
|
||||||
fi
|
fi
|
||||||
root_grub="$(make_system_path_relative_to_its_root /boot/$grub_directory)"
|
|
||||||
# Make a submenu in GRUB (grub.cfg)
|
# Make a submenu in GRUB (grub.cfg)
|
||||||
cat << EOF
|
cat << EOF
|
||||||
submenu '${submenuname}' ${protection_authorized_users}${unrestricted_access_submenu}{
|
submenu '${submenuname}' ${protection_authorized_users}${unrestricted_access_submenu}{
|
||||||
|
|||||||
Reference in New Issue
Block a user