Commit 763526be authored by Administrator's avatar Administrator 💬

Clown around…

parent f72f4e2b
......@@ -56,12 +56,14 @@ class M3P2Plugin extends Plugin
*/
public function onPageInitialized()
{
$out = "Trying to sync content with GitLab…\n";
$out = "Opening a fortune cookie…\n\n\n";
# shell pwd is project root
// shell pwd is project root
// $out .= shell_exec("fortune | cowsay -e Oø -f dragon") . "\n";
$out .= shell_exec("fortune") . "\n\n";
$out .= "Trying to sync content with GitLab…\n\n\n";
$out .= shell_exec("cd user/pages && git pull --rebase --autostash origin master 2>&1") . "\n";
$out .= shell_exec("fortune") . "\n";
//$out .= shell_exec("fortune | cowsay -e Oø -f dragon") . "\n";
$out .= "Done.";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment