scripts/makedist.sh: fix test usage

Checkbashisms (part of the Debian devscripts) pionted this out.
This commit is contained in:
Jonathan Neuschäfer 2011-07-17 21:09:52 +02:00 committed by Max Kellermann
parent 11626e48bf
commit 87593f95d4

View File

@ -3,7 +3,7 @@ PWD=`pwd`
## If we're not in the scripts directory ## If we're not in the scripts directory
## assume the base directory. ## assume the base directory.
if test "`basename $PWD`" == "scripts"; then if test "`basename $PWD`" = "scripts"; then
cd ../ cd ../
else else
MYOLDPWD=`pwd` MYOLDPWD=`pwd`
@ -18,7 +18,7 @@ fi
make make
make dist make dist
if test "`basename $PWD`" == "scripts"; then if test "`basename $PWD`" = "scripts"; then
cd contrib/ cd contrib/
else else
cd $MYOLDPWD cd $MYOLDPWD