Fix in patch function
This commit is contained in:
parent
638d3ddaf7
commit
51f5c77c54
1 changed files with 2 additions and 0 deletions
|
|
@ -152,6 +152,8 @@ class Linux {
|
||||||
|
|
||||||
static public function patch_file($original_file, $patch_file) {
|
static public function patch_file($original_file, $patch_file) {
|
||||||
|
|
||||||
|
$distro=Linux::get_linux_distro();
|
||||||
|
|
||||||
//if call("sudo patch {} < {}".format(original_file[linux_distro], patch_file[linux_distro]), shell=True) > 0:
|
//if call("sudo patch {} < {}".format(original_file[linux_distro], patch_file[linux_distro]), shell=True) > 0:
|
||||||
|
|
||||||
if(!isset($original_file[$distro])) {
|
if(!isset($original_file[$distro])) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue