Skip to content

Commit

Permalink
fixed cli.sh to actually trigger detox correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemmiz committed Mar 14, 2017
1 parent eb4c5c4 commit bcc2312
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions detox-cli/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
DETOX_PATH="${PWD}/node_modules/detox";
DETOX_PACKAGE_JSON_PATH="${DETOX_PATH}/package.json";

if [ -a DETOX_PACKAGE_JSON_PATH ]; then
"${DETOX_PATH}/detox" $@
if [ -f $DETOX_PACKAGE_JSON_PATH ]; then
"${PWD}/node_modules/.bin/detox" $@
else
echo $DETOX_PACKAGE_JSON_PATH
"${PWD}/node_modules/.bin/detox" $@
echo "detox is not installed in this directory"
exit 1
fi

0 comments on commit bcc2312

Please sign in to comment.