mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
CB-1794 fixing cordova commands for paths with spaces in them
This commit is contained in:
parent
ccdd2fd2ca
commit
81f283e56f
@ -21,4 +21,4 @@ set -e
|
||||
|
||||
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
||||
|
||||
bash $CORDOVA_PATH/cordova clean
|
||||
bash "$CORDOVA_PATH"/cordova clean
|
||||
|
@ -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)
|
||||
|
@ -21,4 +21,4 @@ set -e
|
||||
|
||||
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
||||
|
||||
bash $CORDOVA_PATH/cordova debug
|
||||
bash "$CORDOVA_PATH"/cordova debug
|
||||
|
@ -21,4 +21,4 @@ set -e
|
||||
|
||||
CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd )
|
||||
|
||||
bash $CORDOVA_PATH/cordova emulate
|
||||
bash "$CORDOVA_PATH"/cordova emulate
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user