You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
531 B
18 lines
531 B
<?php
|
|
|
|
header("content-type: text/plain");
|
|
echo shell_exec("git pull 2>&1");
|
|
|
|
// header("content-type: text/plain");
|
|
//
|
|
// $fetch = trim(shell_exec("git fetch 2>&1"));
|
|
//
|
|
// if(!preg_match('/(From|Desde) https:\/\//', $fetch)){
|
|
// echo "There are not any updates.";
|
|
// // echo "There is no update.";
|
|
// exit(0);
|
|
// };
|
|
//
|
|
// $pull = shell_exec("git pull 2>&1");
|
|
//
|
|
// echo $fetch . "\n\n" . $pull . "\n\nIt is already updated successfully.";
|
|
|