mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 21:46:58 +02:00
Fix clobber. Strip any extra args and treat last arg as config.
Change-Id: I2bf951342c12d954bd1abbc8b878437c648b4ac7 TBR=Scottz
This commit is contained in:
parent
f0fcd1acfd
commit
aaba25d817
@ -342,8 +342,8 @@ def main():
|
||||
if options.clobber:
|
||||
RunCommand(['sudo', 'rm', '-rf', buildroot])
|
||||
|
||||
if len(args) == 1:
|
||||
buildconfig = _GetConfig(args[0])
|
||||
if len(args) >= 1:
|
||||
buildconfig = _GetConfig(args[-1])
|
||||
else:
|
||||
Warning('Missing configuration description')
|
||||
parser.print_usage()
|
||||
|
Loading…
Reference in New Issue
Block a user