35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
From 9a509d69ef675291a4fa842f6f281b2a968f4b52 Mon Sep 17 00:00:00 2001
|
|
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
|
Date: Mon, 24 Feb 2020 19:57:57 +0530
|
|
Subject: [PATCH] update_flash: Fix warning
|
|
|
|
With recent bash `update_flash -v -f <image>` is throwing below warning.
|
|
|
|
update_flash_nv: line 316: warning: command substitution: ignored null byte in input
|
|
|
|
bash enhancement: https://lists.gnu.org/archive/html/bug-bash/2016-09/msg00015.html
|
|
|
|
This patch fixes above issue.
|
|
|
|
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
|
---
|
|
scripts/update_flash_nv | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/scripts/update_flash_nv b/scripts/update_flash_nv
|
|
index bb9dfee..8be9e8e 100755
|
|
--- a/scripts/update_flash_nv
|
|
+++ b/scripts/update_flash_nv
|
|
@@ -313,7 +313,7 @@ fsp_validate_flash() {
|
|
echo 1 > $SYS_VALIDATE_FLASH 2>/dev/null
|
|
|
|
# Display appropriate message, exiting if necessary
|
|
- output="$(cat $SYS_VALIDATE_FLASH)"
|
|
+ output="$(tr -d '\0' < $SYS_VALIDATE_FLASH)"
|
|
fsp_echo_validate_return_status "$output"
|
|
}
|
|
|
|
--
|
|
2.21.1
|
|
|