Fix in define
This commit is contained in:
parent
96db5efffa
commit
543f5cba5f
1 changed files with 15 additions and 3 deletions
18
vendor/phangoapp/leviathanutils/src/Linux.php
vendored
18
vendor/phangoapp/leviathanutils/src/Linux.php
vendored
|
|
@ -41,7 +41,7 @@ class Linux {
|
||||||
|
|
||||||
while($b = fgets($a, 2048)) {
|
while($b = fgets($a, 2048)) {
|
||||||
|
|
||||||
echo $b."\n";
|
echo $b;
|
||||||
|
|
||||||
//ob_flush();flush();
|
//ob_flush();flush();
|
||||||
|
|
||||||
|
|
@ -126,7 +126,7 @@ class Linux {
|
||||||
|
|
||||||
echo "Sorry, you don't have a package install for this distro\n";
|
echo "Sorry, you don't have a package install for this distro\n";
|
||||||
|
|
||||||
return false;
|
exit(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -150,7 +150,19 @@ class Linux {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static public function patch_file() {
|
static public function patch_file($original_file, $patch_file) {
|
||||||
|
|
||||||
|
//if call("sudo patch {} < {}".format(original_file[linux_distro], patch_file[linux_distro]), shell=True) > 0:
|
||||||
|
|
||||||
|
if(!isset($original_file[$distro])) {
|
||||||
|
|
||||||
|
echo "Sorry, you don't have a patch for this distro\n";
|
||||||
|
|
||||||
|
exit(1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Linux::shell_command(["sudo patch ${original_file[linux_distro]} < ${patch_file[linux_distro]}");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue