Commit 26258313 authored by kaliko's avatar kaliko

Dereference potential linked file

It can be useful to have linked somewhere outside the
repository clone. For instance to expose in the $PATH.

Exposing with a symbolic link outside the git repository
breaks poezio execution through “ cd dirname "$0" ” will get
to the directory holding the link and not within the git repository.
parent 9f1e80cd
Pipeline #3605 passed with stages
in 4 minutes and 52 seconds
#!/bin/sh #!/bin/sh
cd $(dirname "$0") cd $(dirname "$(readlink -f "$0")")
if [ -z "$POEZIO_VENV" ] if [ -z "$POEZIO_VENV" ]
then then
POEZIO_VENV="poezio-venv" POEZIO_VENV="poezio-venv"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment