Don't suggest changing NARWHAL_ENGINE to jsc if it's already jsc.

This commit is contained in:
Alexander Ljungberg committed 2011-11-07 19:00:20 +00:00
1 parent 7365a95b4d
commit 5ff7169546
1 file changed
+2 -1
+2 -1
View File
@@ -185,6 +185,7 @@ if ! prompt "yes"; then
exit 0
fi
NARWHAL_ENGINE_SAVED="$NARWHAL_ENGINE"
unset NARWHAL_ENGINE
unset SEA
unset SEALVL
@@ -302,7 +303,7 @@ if [ `uname` = "Darwin" ]; then
echo "WARNING: building narwhal-jsc failed. Hit enter to continue."
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
# read
elif ! [ "$NARWHAL_ENGINE" = "jsc" ]; then
elif ! [ "$NARWHAL_ENGINE_SAVED" = "jsc" ]; then
echo "================================================================================"
echo "Rhino is the default Narwhal engine, should we change the default to JavaScriptCore for you?"
echo "This can by overridden by setting the NARWHAL_ENGINE environment variable to \"jsc\" or \"rhino\"."