From 643412e834365cc4daaf790d2030b502270fbb3d Mon Sep 17 00:00:00 2001 From: Alexander Fillbrunn Date: Mon, 29 Oct 2018 10:36:50 +0100 Subject: [PATCH] Removed the "/payload/" prefix in --info and --vars The user should not specify this when running a workflow. When it is shown in the info, it is confusing. --- run.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 7fc1ecb..4e8ba25 100755 --- a/run.sh +++ b/run.sh @@ -12,7 +12,9 @@ if [ "$workflow" = "--vars" ]; then echo "Workflow variables needed for executing the workflows:" echo "-----------------------------------------------------" while IFS= read -r -d $'\0'; do - echo "$(dirname ${REPLY#./workflow/})" + # Cut off the "/payload/"" part because the user does not have to specify it + name="$(dirname ${REPLY#./workflow/})" + echo "${name:9}" echo -e 'Name\tType\tDefault Value' cat "$REPLY" | tr ':' '\t' echo "========" @@ -22,7 +24,8 @@ elif [ "$workflow" = "--info" ]; then echo "Workflows:" echo "-----------------------------------------------------" while IFS= read -r -d $'\0'; do - echo "$(dirname ${REPLY#./workflow/})" + name="$(dirname ${REPLY#./workflow/})" + echo "${name:9}" done < <(find "/payload/workflow" -name dockermeta.knime -print0) echo "-----------------------------------------------------" echo "Installed features:" @@ -64,7 +67,6 @@ elif [ $n -gt 1 ]; then fi fi - if [[ $execute == 1 && $n -gt 0 ]] ; then for var in $wrk do