Permalink
Browse files

Don't assume B2G_HOME is the current folder but take the script locat…

…ion instead
  • Loading branch information...
1 parent 1007702 commit 9eeead8781114d2802ba3e928c106479b75fca1d @whimboo whimboo committed Oct 19, 2012
Showing with 4 additions and 3 deletions.
  1. +3 −2 run-emulator.sh
  2. +1 −1 test.sh
View
@@ -1,7 +1,8 @@
#!/bin/bash
-B2G_HOME=$PWD
-. load-config.sh
+B2G_HOME=$(cd $(dirname $BASH_SOURCE); pwd)
+
+. $B2G_HOME/load-config.sh
DEVICE=${DEVICE:-generic}
View
@@ -1,6 +1,6 @@
#!/bin/bash
-B2G_HOME=$(cd `dirname $0`; pwd)
+B2G_HOME=$(cd $(dirname $BASH_SOURCE); pwd)
usage() {
echo "Usage: $0 [marionette|mochitest] (frontend-args)"

0 comments on commit 9eeead8

Please sign in to comment.