Use current directory if no arguments provided

This commit is contained in:
Miraty 2021-10-26 19:55:25 +02:00
parent fad5d68917
commit 450299e95a
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,12 @@ define("FIND", "/usr/bin/find");
define("GZIP", "/usr/bin/gzip");
define("ROOT", dirname($_SERVER['SCRIPT_FILENAME']));
if (isset($argv[1]))
define("SITE", $argv[1]);
else
define("SITE", getcwd());
if (isset($argv[2]))
define("DESTINATION", $argv[2]);
else