Skip to content

Commit d4878c7

Browse files
authored
fix dd syntax
1 parent 75804ae commit d4878c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/andbootmgr/app/CreatePartFlow.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ private fun Flash(c: CreatePartDataHolder) {
871871
space -= bytes
872872
if (space < 0)
873873
throw IllegalStateException("remaining space $space shouldn't be smaller than 0")
874-
if (!Shell.cmd("dd if=/dev/zero bs=1024 count=${bytes/1024} " + img.absolutePath).to(terminal).exec().isSuccess) {
874+
if (!Shell.cmd("dd if=/dev/zero bs=1024 count=${bytes/1024} of=" + img.absolutePath).to(terminal).exec().isSuccess) {
875875
terminal.add(vm.activity.getString(R.string.term_failed_fallocate))
876876
return@WizardTerminalWork
877877
}

0 commit comments

Comments
 (0)