Use variables for colored error
This commit is contained in:
parent
1c9e362ce0
commit
f306fb0dfb
2 changed files with 2 additions and 1 deletions
|
@ -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}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue