summaryrefslogtreecommitdiff
path: root/makediffhtml.sh
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-06-26 16:50:35 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2014-06-26 16:50:35 +0000
commit5de86e7b0e0ba41eac5b45d8fbc28ebd702b8333 (patch)
treeef95ee91e7802f675ebbcf2c0f4361160089dffe /makediffhtml.sh
parent2a1c8b761712b4ab5fad0b4fa762ffdab96fc0db (diff)
makehtml: fix bad fontpath detection
Fix wanring when run this shell script. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@395 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
Diffstat (limited to 'makediffhtml.sh')
-rwxr-xr-xmakediffhtml.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/makediffhtml.sh b/makediffhtml.sh
index 18260ed..15c4a30 100755
--- a/makediffhtml.sh
+++ b/makediffhtml.sh
@@ -28,7 +28,7 @@ sed 's/~</"</g' $SPECDOC.tmp4 >$SPECDOC.tmp5
# This in not a valid HTML output, so detect this and warn user.
# For detection, we rely on the fact that file utility
# recognizes files with NULL characters as binary data.
-if test `file -b $SPECDOC.tmp5` = 'data';
+if test "$(file -b $SPECDOC.tmp5)" = 'data';
then
echo
echo WARNING!