Mercurial > cpython-lru_cache-weakref
diff Mac/BuildScript/scripts/postflight.patch-profile @ 57358:4fae8168c43b legacy-trunk
Don't use the '==' operator with test, that's an unportable bash-ism.
(Issue 7179)
| author | Ronald Oussoren <ronaldoussoren@mac.com> |
|---|---|
| date | Thu, 19 Nov 2009 17:42:51 +0000 |
| parents | ab23ff2047aa |
| children | e062884765d6 |
line wrap: on
line diff
--- a/Mac/BuildScript/scripts/postflight.patch-profile Thu Nov 19 16:25:21 2009 +0000 +++ b/Mac/BuildScript/scripts/postflight.patch-profile Thu Nov 19 17:42:51 2009 +0000 @@ -36,10 +36,10 @@ # Now ensure that our bin directory is on $P and before /usr/bin at that for elem in `echo $P | tr ':' ' '` do - if [ "${elem}" == "${PYTHON_ROOT}/bin" ]; then + if [ "${elem}" = "${PYTHON_ROOT}/bin" ]; then echo "All right, you're a python lover already" exit 0 - elif [ "${elem}" == "/usr/bin" ]; then + elif [ "${elem}" = "/usr/bin" ]; then break fi done
