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);
|
imageFormat.Id);
|
||||||
else DicConsole.WriteLine("Image format identified by {0}.", imageFormat.Name);
|
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))
|
if(Directory.Exists(outputDir) || File.Exists(outputDir))
|
||||||
{
|
{
|
||||||
DicConsole.ErrorWriteLine("Destination exists, aborting.");
|
DicConsole.ErrorWriteLine("Destination exists, aborting.");
|
||||||
|
|||||||
Reference in New Issue
Block a user