Merge pull request #548 from BioBox/makepkg

Fix bug caused by unescaped globbing
This commit is contained in:
JoeLametta
2021-07-26 14:40:11 +02:00
committed by GitHub

View File

@@ -378,7 +378,7 @@ Log files will log the path to tracks relative to this directory.
self.program.metadata)
dirname = os.path.dirname(discName)
if os.path.exists(dirname):
logs = glob.glob(os.path.join(dirname, '*.log'))
logs = glob.glob(os.path.join(glob.escape(dirname), '*.log'))
if logs:
msg = ("output directory %s is a finished rip" % dirname)
logger.debug(msg)