diff --git a/packages/boshupdate_exporter/packaging b/packages/boshupdate_exporter/packaging index d9fae8c..dee973a 100644 --- a/packages/boshupdate_exporter/packaging +++ b/packages/boshupdate_exporter/packaging @@ -1,10 +1,10 @@ -#!/bin/bash -eu +#!/bin/bash -e ostype=$(uname | tr '[:upper:]' '[:lower:]') -if [ -z "$BOSH_PACKAGES_DIR" ]; then +if [ -z "${BOSH_PACKAGES_DIR}" ]; then pkg_dir=$(readlink -nf /var/vcap/packages/golang-1.12-${ostype}) else - pkg_dir=$BOSH_PACKAGES_DIR/golang-1.12-${ostype} + pkg_dir=${BOSH_PACKAGES_DIR}/golang-1.12-${ostype} fi PACKAGE_NAME="github.com/orange-cloudfoundry/boshupdate_exporter"