summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-09-10 10:11:46 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2020-09-10 10:11:46 +0200
commit68c0c3edcd89061ff890b6c24a78c1c1d97ec3c5 (patch)
tree710872f90b514c40ab4f7e108678dd4d5f37bf40
parent9b734c5504db55a603f0ff5e4c28d929ee6f3d82 (diff)
downloadpoezio-68c0c3edcd89061ff890b6c24a78c1c1d97ec3c5.tar.gz
poezio-68c0c3edcd89061ff890b6c24a78c1c1d97ec3c5.tar.bz2
poezio-68c0c3edcd89061ff890b6c24a78c1c1d97ec3c5.tar.xz
poezio-68c0c3edcd89061ff890b6c24a78c1c1d97ec3c5.zip
Revert "update.sh: bash 'strict mode'"
This reverts commit 235b7a52a492c325371904af68a709ffb53fb9b0.
-rwxr-xr-xupdate.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/update.sh b/update.sh
index bbbaec5b..677aa03e 100755
--- a/update.sh
+++ b/update.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Use this script to download or update all dependencies to their last
# developpement version.
# 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
-set -euo pipefail
-
cd "$(dirname "$0")"
+if [ -z "$POEZIO_VENV" ]
+then
+ POEZIO_VENV="poezio-venv"
+fi
-POEZIO_VENV=${POEZIO_VENV:-poezio-venv}
-POEZIO_PYTHON=${POEZIO_PYTHON:-python3}
+if [ -z "$POEZIO_PYTHON" ]
+then
+ POEZIO_PYTHON=python3
+fi
command -v "$POEZIO_PYTHON" > /dev/null 2>&1 || {
echo "Python executable '$POEZIO_PYTHON' not found."