File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -eua
33
4- if (( $BASH_VERSINFO < 4 )) ; then
5- echo " Sorry, you need at least bash-4.0 to run this script." >&2
6- exit 1
7- fi
8-
94# List of targets to build. Interpreted as directories relative to
105# this script's path.
116declare targets=( \
Original file line number Diff line number Diff line change @@ -13,16 +13,7 @@ echo Checking Environment... >&2
1313# point to valid paths.
1414#
1515for varname in ${required_vars[@]} ; do
16- if [[ ! -v ${varname} ]]; then
17- echo " PROBLEM: ${varname} not set" >&2
18- result=1
19- else
20- eval path=\$ ${varname}
21- if [[ ! -e " ${path} " ]]; then
22- echo " PROBLEM: ${varname} (${path} ) does not exist" >&2
23- result=1
24- fi
25- fi
16+ echo " Check ${varname} "
2617done
2718
2819[[ ${result} -ne 0 ]] && exit ${result}
You can’t perform that action at this time.
0 commit comments