13 lines
271 B
PHP
13 lines
271 B
PHP
<?php
|
|
if(false && $_SERVER["HTTP_X_FORGEJO_EVENT"] != "push")
|
|
exit;
|
|
header("Content-Type: text/plain");
|
|
|
|
function sh($command) {
|
|
exec($command.' 2>&1', $output, $return_var);
|
|
return join("\n", $output);
|
|
}
|
|
|
|
chdir("podmack");
|
|
sh("git pull");
|
|
echo sh("packwiz list");
|