Skip to content

Commit

Permalink
Fix string comparison to be sh compatible
Browse files Browse the repository at this point in the history
from `bash -c 'help test'`:

```
string1 == string2
       True if the strings are equal.  = may be used in place of == for
strict POSIX compliance.
```
  • Loading branch information
chantra committed Sep 19, 2017
1 parent 5e9c6e6 commit 8df891a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/exabgp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ for INTERPRETER in "$INTERPRETER" python3 pypy3; do
INTERPRETER="$(command -v "$INTERPRETER")" && break
done

if [ "$INTERPRETER" == "" ]; then
if [ "$INTERPRETER" = "" ]; then
echo "ExaBGP could not find a python3 interpreter"
exit 1
fi
Expand Down

0 comments on commit 8df891a

Please sign in to comment.