Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
update.sh: bash 'strict mode'
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
  • Loading branch information
Ppjet6 committed Sep 10, 2020
1 parent 4b01469 commit 235b7a5
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions update.sh
@@ -1,21 +1,17 @@
#!/bin/sh
#!/bin/bash
# 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
# need to install them on your system at all.

# 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

if [ -z "$POEZIO_PYTHON" ]
then
POEZIO_PYTHON=python3
fi
POEZIO_VENV=${POEZIO_VENV:-poezio-venv}
POEZIO_PYTHON=${POEZIO_PYTHON:-python3}

command -v "$POEZIO_PYTHON" > /dev/null 2>&1 || {
echo "Python executable '$POEZIO_PYTHON' not found."
Expand Down

0 comments on commit 235b7a5

Please sign in to comment.