From 62800886f71f65b92c5e79adeb5939e9e42632de Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Thu, 27 Dec 2018 19:27:31 -0500 Subject: Use tabs for indentation in grub_bo functions --- projects/grub/grub-helper | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'projects') diff --git a/projects/grub/grub-helper b/projects/grub/grub-helper index ccc9cd73..e28c0f9e 100755 --- a/projects/grub/grub-helper +++ b/projects/grub/grub-helper @@ -63,29 +63,29 @@ grub_modmin_path() { } grub_bo_search() { - local pattern="$1" - local comparand="$2" + local pattern="$1" + local comparand="$2" - grep -Fbof <(grub_bo_dump "$pattern") <(grub_bo_dump "$comparand") | cut -d: -f1 + grep -Fbof <(grub_bo_dump "$pattern") <(grub_bo_dump "$comparand") | cut -d: -f1 } grub_bo_dump() { - local file="$1" + local file="$1" - od -Anx -t x1 -w16 -v "$file" | paste -sd '' | tr -d ' ' + od -Anx -t x1 -w16 -v "$file" | paste -sd '' | tr -d ' ' } grub_bo() { - local pattern="$1" - local comparand="$2" + local pattern="$1" + local comparand="$2" - local nibble_offset="$(grub_bo_search "$pattern" "$comparand")" + local nibble_offset="$(grub_bo_search "$pattern" "$comparand")" - if [[ -n "$nibble_offset" ]]; then - printf '0x%X\n' $((nibble_offset / 2)) - else - return 1 - fi + if [[ -n "$nibble_offset" ]]; then + printf '0x%X\n' $((nibble_offset / 2)) + else + return 1 + fi } grub_blocklist_format() { -- cgit v1.2.3-70-g09d2