Use variables for colored error

This commit is contained in:
Sandino Araico Sanchez 2016-12-23 00:26:02 -06:00
parent f306fb0dfb
commit cb0d8b35fb

View file

@ -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