Skip to content

Commit

Permalink
fix dd syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 authored Jan 21, 2025
1 parent 75804ae commit d4878c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/andbootmgr/app/CreatePartFlow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ private fun Flash(c: CreatePartDataHolder) {
space -= bytes
if (space < 0)
throw IllegalStateException("remaining space $space shouldn't be smaller than 0")
if (!Shell.cmd("dd if=/dev/zero bs=1024 count=${bytes/1024} " + img.absolutePath).to(terminal).exec().isSuccess) {
if (!Shell.cmd("dd if=/dev/zero bs=1024 count=${bytes/1024} of=" + img.absolutePath).to(terminal).exec().isSuccess) {
terminal.add(vm.activity.getString(R.string.term_failed_fallocate))
return@WizardTerminalWork
}
Expand Down

0 comments on commit d4878c7

Please sign in to comment.