1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Mon, 4 Nov 2024 10:16:26 +0100
Subject: Load from system path
Forwarded: not-needed
---
jolinotif | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/jolinotif b/jolinotif
index d30c3bd..21e05a3 100755
--- a/jolinotif
+++ b/jolinotif
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/php
<?php
use Joli\JoliNotif\DefaultNotifier;
@@ -6,8 +6,8 @@ use Joli\JoliNotif\Notification;
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
$loader = require(__DIR__ . '/vendor/autoload.php');
-} elseif (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
- $loader = require(__DIR__ . '/../../../vendor/autoload.php');
+} elseif (file_exists(__DIR__ . '/../share/php/JoliCode/JoliNotif/autoload.php')) {
+ $loader = require(__DIR__ . '/../share/php/JoliCode/JoliNotif/autoload.php');
} else {
throw new \RuntimeException('Unable to load autoloader.');
}
|