1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 22:55:55 +00:00

updater: check for tar and gunzip using which

This commit is contained in:
Andrew Dolgov
2013-01-04 02:32:41 +04:00
parent 2ec1e00e2d
commit 2ae2bb1f52

View File

@@ -60,7 +60,7 @@ class Updater extends Plugin {
array_push($log, "Checking for tar..."); array_push($log, "Checking for tar...");
$system_rc = 0; $system_rc = 0;
system("tar --version >/dev/null", $system_rc); system("which tar >/dev/null", $system_rc);
if ($system_rc != 0) { if ($system_rc != 0) {
array_push($log, "Could not run tar executable (RC=$system_rc)."); 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..."); array_push($log, "Checking for gunzip...");
$system_rc = 0; $system_rc = 0;
system("gunzip --version >/dev/null", $system_rc); system("which gunzip >/dev/null", $system_rc);
if ($system_rc != 0) { if ($system_rc != 0) {
array_push($log, "Could not run gunzip executable (RC=$system_rc)."); array_push($log, "Could not run gunzip executable (RC=$system_rc).");