mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Accept relative path for unpack
This commit is contained in:
parent
adcc2f0aa9
commit
19685b7a4e
@ -928,6 +928,7 @@ def unpack_image(args):
|
||||
raise Exception('Unrecognized image format')
|
||||
while scratchdir.endswith('/'):
|
||||
scratchdir = scratchdir[:-1]
|
||||
scratchdir = os.path.abspath(scratchdir)
|
||||
parentdir = os.path.dirname(scratchdir)
|
||||
targdir = os.path.basename(scratchdir)
|
||||
mkdirp(parentdir)
|
||||
|
Loading…
Reference in New Issue
Block a user