From: Andrew Dolgov Date: Thu, 3 Jan 2013 22:32:41 +0000 (+0400) Subject: updater: check for tar and gunzip using which X-Git-Tag: 1.7.0~72 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2ae2bb1f5292781eeba1557b4102a189958c140e;p=tt-rss.git updater: check for tar and gunzip using which --- diff --git a/plugins/updater/init.php b/plugins/updater/init.php index b089e813..6d1ebf36 100644 --- a/plugins/updater/init.php +++ b/plugins/updater/init.php @@ -60,7 +60,7 @@ class Updater extends Plugin { array_push($log, "Checking for tar..."); $system_rc = 0; - system("tar --version >/dev/null", $system_rc); + system("which tar >/dev/null", $system_rc); if ($system_rc != 0) { array_push($log, "Could not run tar executable (RC=$system_rc)."); @@ -70,7 +70,7 @@ class Updater extends Plugin { array_push($log, "Checking for gunzip..."); $system_rc = 0; - system("gunzip --version >/dev/null", $system_rc); + system("which gunzip >/dev/null", $system_rc); if ($system_rc != 0) { array_push($log, "Could not run gunzip executable (RC=$system_rc).");