HelloZeroNet / HelloZeroNet/ZeroBundle

python shell script can't handle files with spaces in it

Offen
#21 1 Kommentar 0 Reaktionen 1 zugewiesene Person Beansprucht von @HelloZeroNet Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
111
Forks
34
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The `ZeroBundle/Python/python` script has an issue on line 4 where it needs to wrap the `$DIR/python2.7` part in double quotes. Otherwise it fails to start ZeroNet if it's in a path that has a space in it. This is what the entire file should look like instead:

```
#!/bin/bash
DIR=$(dirname "$0")
export SSL_CERT_FILE=$DIR/../ssl/cert.pem
"$DIR/python2.7" "$@
```

I'm not sure where to submit a PR for this hence the issue instead.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.