Don't use the '==' operator with test, that's an unportable bash-ism.
(Issue 7179)
This commit is contained in:
parent
315cd0c739
commit
3934619da7
|
@ -36,10 +36,10 @@ esac
|
||||||
# Now ensure that our bin directory is on $P and before /usr/bin at that
|
# Now ensure that our bin directory is on $P and before /usr/bin at that
|
||||||
for elem in `echo $P | tr ':' ' '`
|
for elem in `echo $P | tr ':' ' '`
|
||||||
do
|
do
|
||||||
if [ "${elem}" == "${PYTHON_ROOT}/bin" ]; then
|
if [ "${elem}" = "${PYTHON_ROOT}/bin" ]; then
|
||||||
echo "All right, you're a python lover already"
|
echo "All right, you're a python lover already"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${elem}" == "/usr/bin" ]; then
|
elif [ "${elem}" = "/usr/bin" ]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue