constraints: fixed typo in tox_install.sh

We should not use -ne with strings; instead, != should be used.

This bug in the script effectively left all tox targets unconstrained.

Change-Id: I867a3c7a2049e1d8e5cde76d8eb60d15880c430d
This commit is contained in:
Ihar Hrachyshka 2016-03-07 14:21:06 +01:00
parent 289e9d988d
commit de182d672e

View File

@ -19,7 +19,7 @@ install_cmd="pip install"
CONSTRAINTS_FILE=$1
shift
if [ "$CONSTRAINTS_FILE" -ne "unconstrained" ]; then
if [ "$CONSTRAINTS_FILE" != "unconstrained" ]; then
install_cmd="$install_cmd -c$CONSTRAINTS_FILE"
fi