2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Accept relative path for unpack

This commit is contained in:
Jarrod Johnson 2021-09-02 11:38:09 -04:00
parent adcc2f0aa9
commit 19685b7a4e

View File

@ -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)