Disable file check for for files option

This does currently not work with setting an alternate working directory and checks for existence in the main location
This commit is contained in:
Andreas Kießling
2020-03-01 09:20:20 +01:00
committed by GitHub
parent 88cda12146
commit 3f2db0344f

View File

@@ -58,11 +58,12 @@ abstract class Base extends BaseTask implements CommandInterface
*/
public function file($filename)
{
if (!file_exists($filename)) {
throw new \InvalidArgumentException(
sprintf("File %s wasn't found on the filesystem", $filename)
);
}
// FIXME: does not work with working directory option
//if (!file_exists($filename)) {
// throw new \InvalidArgumentException(
// sprintf("File %s wasn't found on the filesystem", $filename)
// );
//}
$this->execOption('file', $filename);