fix an error in 'flash' task

pull/6/head
cfig 9 years ago
parent 1c77093f10
commit 395d66ef9e

@ -284,7 +284,7 @@ void RunFunc(String inCmd, String inWorkdir = null) {
RunFunc(Arrays.asList(inCmd.split()), inWorkdir); RunFunc(Arrays.asList(inCmd.split()), inWorkdir);
} }
void updateBootImage() { void updateBootImage(String activeImg) {
String flashTarget = null; String flashTarget = null;
switch (activeImg) { switch (activeImg) {
case "boot.img": case "boot.img":
@ -303,7 +303,7 @@ void updateBootImage() {
} }
task flash << { task flash << {
updateBootImage() updateBootImage(activeImg)
} }
void rebootRecovery() { void rebootRecovery() {

Loading…
Cancel
Save