dmcrypt_check() # device outstring
{
X=$(dmsetup table $1 2>/dev/null | sed 's/.*: //' | cut -d' ' -f 4)
- if [ $X = $2 ] ; then
+ if [ "$X" = $2 ] ; then
echo -n "[table OK]"
else
echo "[table FAIL]"
echo -n "[status OK]"
else
echo "[status FAIL]"
- echo " Expecting $2 got $X."
+ echo " Expecting $2 got \"$X\"."
fail
fi