aboutsummaryrefslogtreecommitdiff
path: root/projects/grub/grub-helper
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2018-12-27 19:27:31 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2018-12-28 21:43:22 -0500
commit62800886f71f65b92c5e79adeb5939e9e42632de (patch)
treeba352c95fddd5a1004934030c125a86ee41ec60d /projects/grub/grub-helper
parent23ae353382f819d2b7de7328c813f61784d88ee7 (diff)
downloadlibrebootfr-62800886f71f65b92c5e79adeb5939e9e42632de.tar.gz
librebootfr-62800886f71f65b92c5e79adeb5939e9e42632de.zip
Use tabs for indentation in grub_bo functions
Diffstat (limited to 'projects/grub/grub-helper')
-rwxr-xr-xprojects/grub/grub-helper26
1 files changed, 13 insertions, 13 deletions
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() {