Fixed helm_dry_run path issue

Fixed the calculation of WORK_DIR so that the script can be
invoked by itself (as opposed to part of the overall gate scripts,
which works fine).

Change-Id: Ib7d07978965d3401725c7766754bbaff2f535a5a
This commit is contained in:
Matt McEuen 2017-11-26 14:19:57 -06:00
parent e377914e45
commit 7d7cf484ee

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -ex
: ${WORK_DIR:="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"}
: ${WORK_DIR:="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../.."}
source ${WORK_DIR}/tools/gate/vars.sh
source ${WORK_DIR}/tools/gate/funcs/helm.sh