mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-23 03:47:33 +00:00
Add ability to ignore failed installs
This commit is contained in:
parent
e782544db9
commit
c21fd30312
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user