Browse Source

Use current directory if no arguments provided

main
Miraty 1 month ago
parent
commit
450299e95a
  1. 7
      mkht.php

7
mkht.php

@ -9,7 +9,12 @@ define("FIND", "/usr/bin/find");
define("GZIP", "/usr/bin/gzip");
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]))
define("DESTINATION", $argv[2]);
else

Loading…
Cancel
Save