]> granicus.if.org Git - python/commitdiff
Don't use the '==' operator with test, that's an unportable bash-ism.
authorRonald Oussoren <ronaldoussoren@mac.com>
Thu, 19 Nov 2009 17:42:51 +0000 (17:42 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Thu, 19 Nov 2009 17:42:51 +0000 (17:42 +0000)
(Issue 7179)

Mac/BuildScript/scripts/postflight.patch-profile

index 0c0e4ff3c6f694226de78d224983379b11dd1b44..d9ff3284780a41ccf76e0fe7674a5ad2b2fb0d3c 100755 (executable)
@@ -36,10 +36,10 @@ esac
 # 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