Commit 8e9cfb0e authored by Vinicius Ruoso's avatar Vinicius Ruoso

Using test command to evaluate 'if' expression

Part of the adaptation to the POSIX standard.
Signed-off-by: 's avatarVinicius Ruoso <vkr07@c3sl.ufpr.br>
parent 36346cef
......@@ -30,9 +30,10 @@ prd_raid_www()
PSTATETYPE="$PSTATETYPE prd_raid_missdisk_st:$MISSINGDISK"
PSTATETYPE="$PSTATETYPE prd_raid_ioerror_st:$IOERROR"
if [[ $OUT == "true" || $SYNC == "true" || $FAULTY == "true" || \
$MISSINGPART == "true" || $MISSINGDISK == "true" || \
$NOINFO == "true" || $IOERROR == "true" ]]; then
if test "$OUT" = "true" || test "$SYNC" = "true" || \
test "$FAULTY" = "true" || test "$MISSINGPART" = "true" || \
test "$MISSINGDISK" = "true" || test "$NOINFO" = "true" || \
test "$IOERROR" = "true"; then
PSTATUS=red
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment