Dereference potential linked launch.sh file
It can be useful to have launch.sh linked somewhere outside the repository clone. For instance to expose launch.sh in the $PATH. Exposing launch.sh with a symbolic link outside the git repository breaks poezio execution through launch.sh. “ cd dirname "$0" ” will get to the directory holding the link and not within the git repository.
This commit is contained in:
parent
9f1e80cd5c
commit
262583133e
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
cd $(dirname "$0")
|
||||
cd $(dirname "$(readlink -f "$0")")
|
||||
if [ -z "$POEZIO_VENV" ]
|
||||
then
|
||||
POEZIO_VENV="poezio-venv"
|
||||
|
|
Loading…
Reference in a new issue