Use '=' instead of '==' in /bin/sh scripts to avoid portability

problems.
This commit is contained in:
Francois Gouget 2004-12-14 11:39:14 +00:00 committed by Alexandre Julliard
parent 1493433e38
commit 4e422766fd
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
name="$1" name="$1"
if [ "$name" == "" ] ; then if [ "$name" = "" ] ; then
echo -n 'Function: ' echo -n 'Function: '
read name; read name;
fi fi

View File

@ -109,7 +109,7 @@ for i in "${FONTS[@]}"; do
done; done;
for i in *.bdf; do for i in *.bdf; do
if [ "$i" == "*.bdf" ]; then if [ "$i" = "*.bdf" ]; then
echo "No fonts extracted"; rm -rf "$TMPDIR"; exit 0; echo "No fonts extracted"; rm -rf "$TMPDIR"; exit 0;
fi; fi;
bdftopcf "$i" | gzip -c > ${i%.???}.pcf.gz; bdftopcf "$i" | gzip -c > ${i%.???}.pcf.gz;