Use variables for colored error

This commit is contained in:
Sandino Araico Sanchez 2016-12-23 00:16:34 -06:00
parent 1c9e362ce0
commit f306fb0dfb
2 changed files with 2 additions and 1 deletions

View file

@ -10,6 +10,7 @@ OFF=$'\e[0;0m'
RES_OK=${GRN}OK${OFF}
RES_FAIL=${RED}FAIL${OFF}
RES_ERROR=${RED}ERR${OFF}
RES_ULT=${BLD}RESULT${OFF}
#RES_FAIL_BLINK="${RED_BLINK}FAIL${OFF}"
RES_FAIL_BIG="${RED_BOLD}######## FAIL ########${OFF}"

View file

@ -74,7 +74,7 @@ else
done
smartctl -A -f brief /dev/$DISK \
| parse-smart-attr \
| sed 's/ERROR/${RED}ERROR${OFF}/g' \
| sed 's/ERROR/$RES_ERROR/g' \
> $OUTPUT_DIR/disk/$SERIAL.smart.error
fi
fi