From cb0d8b35fb517d79d309f0254c1d6a04495a5ef0 Mon Sep 17 00:00:00 2001 From: Sandino Araico Sanchez Date: Fri, 23 Dec 2016 00:26:02 -0600 Subject: [PATCH] Use variables for colored error --- scripts/wrapper-badblocks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wrapper-badblocks b/scripts/wrapper-badblocks index 3de99ea..7f9a81a 100755 --- a/scripts/wrapper-badblocks +++ b/scripts/wrapper-badblocks @@ -74,7 +74,7 @@ else done smartctl -A -f brief /dev/$DISK \ | parse-smart-attr \ - | sed 's/ERROR/$RES_ERROR/g' \ + | sed "s/ERROR/$RES_ERROR/g" \ > $OUTPUT_DIR/disk/$SERIAL.smart.error fi fi