Fix in define

This commit is contained in:
absurdo 2023-11-25 00:34:51 +01:00
parent 96db5efffa
commit 543f5cba5f

View file

@ -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]}");
} }