Remove Arch folder after mounting UFD
This commit is contained in:
parent
ff12a7e612
commit
f395f7aec1
1 changed files with 9 additions and 9 deletions
|
|
@ -55,15 +55,7 @@ if __name__ == '__main__':
|
|||
|
||||
# Prep UFD
|
||||
print_info('Prep UFD')
|
||||
if args['--update']:
|
||||
# Remove arch folder
|
||||
try_and_print(
|
||||
indent=2,
|
||||
message='Removing Linux...',
|
||||
function=remove_arch,
|
||||
)
|
||||
else:
|
||||
# Format and partition
|
||||
if not args['--update']:
|
||||
prep_device(ufd_dev, UFD_LABEL, use_mbr=args['--use-mbr'])
|
||||
|
||||
# Mount UFD
|
||||
|
|
@ -76,6 +68,14 @@ if __name__ == '__main__':
|
|||
read_write=True,
|
||||
)
|
||||
|
||||
# Remove Arch folder
|
||||
if args['--update']:
|
||||
try_and_print(
|
||||
indent=2,
|
||||
message='Removing Linux...',
|
||||
function=remove_arch,
|
||||
)
|
||||
|
||||
# Copy sources
|
||||
print_standard(' ')
|
||||
print_info('Copy Sources')
|
||||
|
|
|
|||
Loading…
Reference in a new issue