From 5de86e7b0e0ba41eac5b45d8fbc28ebd702b8333 Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Thu, 26 Jun 2014 16:50:35 +0000 Subject: makehtml: fix bad fontpath detection Fix wanring when run this shell script. Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@395 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- makediffhtml.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makediffhtml.sh') diff --git a/makediffhtml.sh b/makediffhtml.sh index 18260ed..15c4a30 100755 --- a/makediffhtml.sh +++ b/makediffhtml.sh @@ -28,7 +28,7 @@ sed 's/~$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! -- cgit v1.2.3