From f73f4a87363ff5a02506db53d6b07d3176f91597 Mon Sep 17 00:00:00 2001 From: Abdurrahman NAMLI Date: Mon, 30 Apr 2018 23:54:48 +0200 Subject: [PATCH] Fix bash variable errors at workflow builder cmd * Fix variable errors, use $ * Only scan for `*.wf.yaml` files as archive may contain other `*.yaml` files (happened in real use case) * Fix parse call by removing wrong `>` redirection call --- build/build-env/defaultBuild.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/build-env/defaultBuild.sh b/build/build-env/defaultBuild.sh index 4a9f5f11..4294fdac 100755 --- a/build/build-env/defaultBuild.sh +++ b/build/build-env/defaultBuild.sh @@ -20,9 +20,9 @@ if [[ -f ${SRC_PKG} ]] ; then elif [[ -d ${SRC_PKG} ]] ; then # Package is an archive mkdir -p ${DEPLOY_PKG} - for wf in ${SRC_PKG}/*.yaml ; do - dst=$(basename wf) - parse ${wf} > ${DEPLOY_PKG}/dst + for wf in ${SRC_PKG}/*.wf.yaml ; do + dst=$(basename ${wf}) + parse ${wf} ${DEPLOY_PKG}/${dst} done else echo "Invalid file type: '${SRC_PKG}'"