Add ability to ignore failed installs

This commit is contained in:
ViViDboarder 2021-12-17 11:25:06 -08:00
parent e782544db9
commit c21fd30312

View File

@ -1,9 +1,15 @@
#! /bin/bash #! /bin/bash
set -e
# Clear explicit PYTHONPATH since this gets confused between py2 and py3 # Clear explicit PYTHONPATH since this gets confused between py2 and py3
export PYTHONPATH="" export PYTHONPATH=""
# Ignore failed installs
if [ -z "$IGNORE_MISSING" ]; then
set -e
else
set +e
fi
# Determines if a command exists or not # Determines if a command exists or not
function command_exist() { function command_exist() {
command -v "$1" > /dev/null 2>&1; command -v "$1" > /dev/null 2>&1;