update.sh: bash 'strict mode'
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
4b01469a62
commit
235b7a52a4
1 changed files with 6 additions and 10 deletions
16
update.sh
16
update.sh
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
# 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,16 +6,12 @@
|
||||||
|
|
||||||
# Use launch.sh to start poezio directly from here
|
# Use launch.sh to start poezio directly from here
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
set -euo pipefail
|
||||||
if [ -z "$POEZIO_VENV" ]
|
|
||||||
then
|
|
||||||
POEZIO_VENV="poezio-venv"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$POEZIO_PYTHON" ]
|
cd "$(dirname "$0")"
|
||||||
then
|
|
||||||
POEZIO_PYTHON=python3
|
POEZIO_VENV=${POEZIO_VENV:-poezio-venv}
|
||||||
fi
|
POEZIO_PYTHON=${POEZIO_PYTHON:-python3}
|
||||||
|
|
||||||
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