mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Add an option to control unmounting on success in Etcher CLI (#362)
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
3fdf41693a
commit
bb4ad6a042
@ -103,6 +103,12 @@ module.exports = yargs
|
||||
describe: 'confirm non-interactively',
|
||||
boolean: true,
|
||||
alias: 'y'
|
||||
},
|
||||
unmount: {
|
||||
describe: 'unmount on success',
|
||||
boolean: true,
|
||||
alias: 'u',
|
||||
default: true
|
||||
}
|
||||
})
|
||||
.argv;
|
||||
|
@ -57,7 +57,7 @@ form.run([
|
||||
return writer.writeImage(options._[0], {
|
||||
device: answers.drive
|
||||
}, {
|
||||
unmountOnSuccess: false,
|
||||
unmountOnSuccess: options.unmount,
|
||||
validateWriteOnSuccess: options.check
|
||||
}, function(state) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user