parent
9b734c5504
commit
68c0c3edcd
1 changed files with 9 additions and 5 deletions
14
update.sh
14
update.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
# Use this script to download or update all dependencies to their last
|
# Use this script to download or update all dependencies to their last
|
||||||
# developpement version.
|
# developpement version.
|
||||||
# The dependencies will be located in a virtualenv, so you do not
|
# The dependencies will be located in a virtualenv, so you do not
|
||||||
|
@ -6,12 +6,16 @@
|
||||||
|
|
||||||
# Use launch.sh to start poezio directly from here
|
# Use launch.sh to start poezio directly from here
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
if [ -z "$POEZIO_VENV" ]
|
||||||
|
then
|
||||||
|
POEZIO_VENV="poezio-venv"
|
||||||
|
fi
|
||||||
|
|
||||||
POEZIO_VENV=${POEZIO_VENV:-poezio-venv}
|
if [ -z "$POEZIO_PYTHON" ]
|
||||||
POEZIO_PYTHON=${POEZIO_PYTHON:-python3}
|
then
|
||||||
|
POEZIO_PYTHON=python3
|
||||||
|
fi
|
||||||
|
|
||||||
command -v "$POEZIO_PYTHON" > /dev/null 2>&1 || {
|
command -v "$POEZIO_PYTHON" > /dev/null 2>&1 || {
|
||||||
echo "Python executable '$POEZIO_PYTHON' not found."
|
echo "Python executable '$POEZIO_PYTHON' not found."
|
||||||
|
|
Loading…
Reference in a new issue