Use current directory if no arguments provided
This commit is contained in:
parent
fad5d68917
commit
450299e95a
1 changed files with 6 additions and 1 deletions
7
mkht.php
7
mkht.php
|
@ -9,7 +9,12 @@ define("FIND", "/usr/bin/find");
|
||||||
define("GZIP", "/usr/bin/gzip");
|
define("GZIP", "/usr/bin/gzip");
|
||||||
|
|
||||||
define("ROOT", dirname($_SERVER['SCRIPT_FILENAME']));
|
define("ROOT", dirname($_SERVER['SCRIPT_FILENAME']));
|
||||||
define("SITE", $argv[1]);
|
|
||||||
|
if (isset($argv[1]))
|
||||||
|
define("SITE", $argv[1]);
|
||||||
|
else
|
||||||
|
define("SITE", getcwd());
|
||||||
|
|
||||||
if (isset($argv[2]))
|
if (isset($argv[2]))
|
||||||
define("DESTINATION", $argv[2]);
|
define("DESTINATION", $argv[2]);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue