mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Simple fix for #222
This commit is contained in:
@@ -163,6 +163,12 @@ namespace DiscImageChef.Commands
|
||||
imageFormat.Id);
|
||||
else DicConsole.WriteLine("Image format identified by {0}.", imageFormat.Name);
|
||||
|
||||
if (outputDir == null)
|
||||
{
|
||||
DicConsole.WriteLine("Output directory missing.");
|
||||
return (int)ErrorNumber.MissingArgument;
|
||||
}
|
||||
|
||||
if(Directory.Exists(outputDir) || File.Exists(outputDir))
|
||||
{
|
||||
DicConsole.ErrorWriteLine("Destination exists, aborting.");
|
||||
@@ -519,4 +525,4 @@ namespace DiscImageChef.Commands
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user