Added check for empty package input

This commit is contained in:
Netkas 2023-10-03 17:15:01 -04:00
parent 161ef357a2
commit 1e0ea848b8
No known key found for this signature in database
GPG key ID: 5DAF58535614062B

View file

@ -211,6 +211,12 @@
return 0;
}
if($package === '')
{
Console::outError('No package specified, use --package or -p to specify a package', true, 1);
return 1;
}
if(!is_file($package))
{
Console::outError(sprintf("Unable to find package '%s'", $package), true, 1);