mirror of
https://github.com/YGGverse/Pulsar.git
synced 2026-03-31 17:55:37 +00:00
fix ending slash
This commit is contained in:
parent
389fb4136e
commit
433700d2d6
1 changed files with 8 additions and 5 deletions
|
|
@ -17,11 +17,14 @@ if (empty($argv[1]))
|
||||||
// Init server path
|
// Init server path
|
||||||
define(
|
define(
|
||||||
'PULSAR_SERVER_DIRECTORY',
|
'PULSAR_SERVER_DIRECTORY',
|
||||||
|
rtrim(
|
||||||
str_starts_with($argv[1], DIRECTORY_SEPARATOR) ? $argv[1] :
|
str_starts_with($argv[1], DIRECTORY_SEPARATOR) ? $argv[1] :
|
||||||
realpath(
|
realpath(
|
||||||
__DIR__ .
|
__DIR__ .
|
||||||
DIRECTORY_SEPARATOR . '..' .
|
DIRECTORY_SEPARATOR . '..' .
|
||||||
DIRECTORY_SEPARATOR . $argv[1]
|
DIRECTORY_SEPARATOR . $argv[1]
|
||||||
|
),
|
||||||
|
DIRECTORY_SEPARATOR
|
||||||
) . DIRECTORY_SEPARATOR
|
) . DIRECTORY_SEPARATOR
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue