Fix info command when not given outpath

This commit is contained in:
Deterous
2023-12-04 23:40:46 +13:00
parent 493c92220a
commit 0443ba5b9f
+2 -1
View File
@@ -135,7 +135,8 @@ namespace IRDKit
case InfoOptions opt:
// Clear the output file path if it exists
File.Delete(opt.OutPath);
if (opt.OutPath != null)
File.Delete(opt.OutPath);
// If directory, search for all ISOs in current directory
if (Directory.Exists(opt.InPath))