grub2/0255-Fix-the-fallback-counting-script-even-harder.patch
Peter Jones 7531222057 Fix the fallback counting script even harder. Apparently, this wasn't
tested well enough.
  Resolves: rhbz#1614637

Signed-off-by: Peter Jones <pjones@redhat.com>
2018-10-03 15:57:52 -04:00

30 lines
928 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Wed, 3 Oct 2018 15:53:18 -0400
Subject: [PATCH] Fix the fallback counting script even harder.
Apparently, this wasn't tested well enough.
Resolves: rhbz#1614637
Signed-off-by: Peter Jones <pjones@redhat.com>
---
util/grub.d/01_fallback_counting.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/grub.d/01_fallback_counting.in b/util/grub.d/01_fallback_counting.in
index afe06199a93..31e8981887b 100644
--- a/util/grub.d/01_fallback_counting.in
+++ b/util/grub.d/01_fallback_counting.in
@@ -7,8 +7,8 @@ if [ "\${boot_counter}" -a "\${boot_success}" = "0" ]; then
set default=1
set boot_counter=-1
else
- set boot_counter=$((\${boot_counter}-1))
+ set boot_counter=\$((\${boot_counter}-1))
fi
save_env boot_counter
fi
-EOF
\ No newline at end of file
+EOF