Skip to content

Commit

Permalink
Removed the "/payload/" prefix in --info and --vars
Browse files Browse the repository at this point in the history
The user should not specify this when running a workflow.
When it is shown in the info, it is confusing.
  • Loading branch information
AlexanderFillbrunn authored and stelfrich committed Nov 7, 2018
1 parent a473a8c commit 643412e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "========"
Expand All @@ -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:"
Expand Down Expand Up @@ -64,7 +67,6 @@ elif [ $n -gt 1 ]; then
fi
fi


if [[ $execute == 1 && $n -gt 0 ]] ; then
for var in $wrk
do
Expand Down

0 comments on commit 643412e

Please sign in to comment.