Skip to content
Snippets Groups Projects
Commit 4239e2c7 authored by aviindub's avatar aviindub
Browse files

Issue #2481643: Drush: "Stripe PHP library already present..." message when library is not present

parent 11dadb8d
No related branches found
No related merge requests found
......@@ -23,6 +23,10 @@ function drush_commerce_stripe_download() {
if (module_exists('libraries')) {
$path .= '/' . libraries_get_path('stripe-php');
}
else {
drush_log(dt('Commerce Stripe requires the Libraries module (https://www.drupal.org/project/libraries) in order to install the Stripe PHP library.'), 'warning');
return;
}
if (is_dir($path)) {
drush_log('Stripe PHP library already present. No download required.', 'ok');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment