diff --git a/bin/templates/cordova/clean b/bin/templates/cordova/clean index 2a6bf969..53b7f9af 100755 --- a/bin/templates/cordova/clean +++ b/bin/templates/cordova/clean @@ -21,4 +21,4 @@ set -e CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd ) -bash $CORDOVA_PATH/cordova clean +bash "$CORDOVA_PATH"/cordova clean diff --git a/bin/templates/cordova/cordova b/bin/templates/cordova/cordova index 8159b330..1a1a4870 100755 --- a/bin/templates/cordova/cordova +++ b/bin/templates/cordova/cordova @@ -90,7 +90,7 @@ function debug { } function launch { - local launch_str=$(java -jar $PROJECT_PATH/cordova/appinfo.jar $PROJECT_PATH/AndroidManifest.xml) + local launch_str=$(java -jar "$PROJECT_PATH"/cordova/appinfo.jar "$PROJECT_PATH"/AndroidManifest.xml) adb shell am start -n $launch_str } @@ -99,4 +99,4 @@ function BOOM { } # TODO parse arguments -(cd $PROJECT_PATH && $1) +(cd "$PROJECT_PATH" && $1) diff --git a/bin/templates/cordova/debug b/bin/templates/cordova/debug index b1e30c06..aaa59780 100755 --- a/bin/templates/cordova/debug +++ b/bin/templates/cordova/debug @@ -21,4 +21,4 @@ set -e CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd ) -bash $CORDOVA_PATH/cordova debug +bash "$CORDOVA_PATH"/cordova debug diff --git a/bin/templates/cordova/emulate b/bin/templates/cordova/emulate index 5ba723af..fe27b2f3 100755 --- a/bin/templates/cordova/emulate +++ b/bin/templates/cordova/emulate @@ -21,4 +21,4 @@ set -e CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd ) -bash $CORDOVA_PATH/cordova emulate +bash "$CORDOVA_PATH"/cordova emulate diff --git a/bin/templates/cordova/log b/bin/templates/cordova/log index 432a5c69..087a2001 100755 --- a/bin/templates/cordova/log +++ b/bin/templates/cordova/log @@ -19,6 +19,6 @@ set -e -PROJECT_PATH=$( cd "$( dirname "$0" )/.." && pwd ) +CORDOVA_PATH=$( cd "$( dirname "$0" )/.." && pwd ) -bash $PROJECT_PATH/cordova/cordova log +bash "$CORDOVA_PATH"/cordova/cordova log