Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix test(1) bug. The old test for existance of the foo.x file is broken

under Solaris's test(1).  Linux & FreeBSD show this when running the
script with "set -x":

+ infile=rpc
+ '[' -z rpc ']'
++ echo rpc
++ sed 's;.x$;;'
+ noxinfile=rpc
+ '[' '!' -f ']'

There's supposed to be a filename after the "-f" in the second test.
Linux & FreeBSD don't care, Solaris does.
  • Loading branch information...
commit 2e6bbfc841074393d257a9f2d4fb18b31f796e5f 1 parent f5ea18e
slfritchie authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/erpcgen.src
View
4 src/erpcgen.src
@@ -64,8 +64,8 @@ fi
noxinfile=`echo $infile | sed 's;.x$;;'`
-if [ ! -f $xfile ]; then
- echo "Sorry, file $xfile does not exist"
+if [ ! -f $noxinfile.x ]; then
+ echo "Sorry, file $noxinfile.x does not exist"
exit 1
fi
Please sign in to comment.
Something went wrong with that request. Please try again.