mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 03:31:36 +01:00
build: make --dry-run all work
This commit is contained in:
@@ -269,11 +269,12 @@ class ShellHelpers:
|
||||
'''
|
||||
if config_fragments is None:
|
||||
config_fragments = []
|
||||
with open(config_path, 'a') as config_file:
|
||||
for config_fragment in config_fragments:
|
||||
with open(config_fragment, 'r') as config_fragment_file:
|
||||
self.print_cmd(['cat', config_fragment, '>>', config_path])
|
||||
if not self.dry_run:
|
||||
for config_fragment in config_fragments:
|
||||
self.print_cmd(['cat', config_fragment, '>>', config_path])
|
||||
if not self.dry_run:
|
||||
with open(config_path, 'a') as config_file:
|
||||
for config_fragment in config_fragments:
|
||||
with open(config_fragment, 'r') as config_fragment_file:
|
||||
for line in config_fragment_file:
|
||||
config_file.write(line)
|
||||
self.write_string_to_file(config_path, '\n'.join(configs), mode='a')
|
||||
|
||||
Reference in New Issue
Block a user