From babec7b5d6acef790c14376014851e4a68f5c920 Mon Sep 17 00:00:00 2001 From: Tim Coulter Date: Mon, 3 Aug 2015 09:57:11 -0700 Subject: [PATCH] Should have been in with the last commit. --- truffle.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/truffle.bash b/truffle.bash index 94444fbc44e..05afa079060 100755 --- a/truffle.bash +++ b/truffle.bash @@ -10,12 +10,11 @@ then fi # Hack. babel-node will clobber -e, and it doesn't look like `--` will stop it. +# Because we're doing string replacement, we have to take edge cases into account. args=" $@" args=${args// -e / --environment } args=${args// -e=/ --environment=} args=${args// -environment/ --environment} -echo ${args} - cd $TRUFFLE_NPM_LOCATION $TRUFFLE_NPM_LOCATION/node_modules/.bin/babel-node -- $TRUFFLE_NPM_LOCATION/truffle.es6 ${args}