summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Patsura <[email protected]>2019-06-07 18:18:13 +0300
committerDmitry Patsura <[email protected]>2019-06-07 18:18:13 +0300
commitf00608935f3d2576bf3edc50d3eb303ce2cd66ea (patch)
treec6b0cb16e668694acb42d3316e83f24cfaa7d666 /src
parentb71ec58e30da602a3d3f04feb00f9dc4f806245b (diff)
Fix(rr): Allow to run without ext-zip for linux
Diffstat (limited to 'src')
-rw-r--r--src/bin/rr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/rr b/src/bin/rr
index 87403e38..a2a099db 100644
--- a/src/bin/rr
+++ b/src/bin/rr
@@ -33,7 +33,7 @@ if (!defined('RR_COMPOSER_INSTALL')) {
die(1);
}
-if (!class_exists('ZipArchive')) {
+if (RRHelper::getOSType() !== 'linux' && !class_exists('ZipArchive')) {
fwrite(STDERR, 'Extension `php-zip` is required.' . PHP_EOL);
die(1);
}