Skip to content

Commit

Permalink
kanister ci fails with unbound variable error (#6174)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupriyaKasten authored and Ilya Kislenko committed Jul 30, 2019
1 parent 4c97b91 commit 57f5651
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build/local_kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ export KIND_VERSION=${KIND_VERSION:-"v0.4.0"}
export LOCAL_CLUSTER_NAME=${LOCAL_CLUSTER_NAME:-"kanister"}
declare -a REQUIRED_BINS=( docker sudo jq go )

if command -v apt-get
then
lin_repo_pre_cmd="apt-get install -y "
elif command -v apk
then
lin_repo_pre_cmd="apk add --update "
else
echo "apk or apt-get is supported at this moment"
exit 1
fi

check_or_get_dependencies() {
for dep in ${REQUIRED_BINS[@]}
do
Expand Down

0 comments on commit 57f5651

Please sign in to comment.