diff --git a/a3p-integration/scripts/generate-a3p-submissions.sh b/a3p-integration/scripts/generate-a3p-submissions.sh index 527e1755429e..969a9eba286e 100755 --- a/a3p-integration/scripts/generate-a3p-submissions.sh +++ b/a3p-integration/scripts/generate-a3p-submissions.sh @@ -1,7 +1,10 @@ #!/bin/bash set -ueo pipefail -SCRIPT_DIR=$( cd ${0%/*} && pwd -P ) +## cd prints its target, so without the redirect, we get two copies +#SCRIPT_DIR=$( cd ${0%/*} > /dev/null && pwd -P ) +SCRIPT_DIR=$( cd ${0%/*} > /dev/null && pwd -P ) +echo " " SCRIPT_DIR is $SCRIPT_DIR IFS=$'\n' @@ -9,7 +12,9 @@ for proposal in ./proposals/?:*; do cd $proposal while read -r line; do IFS=' ' parts=( $line ) + echo " about to GENERATE " $proposal $SCRIPT_DIR/generate-a3p-submission.sh $proposal ${parts[@]} + echo " finished GENERATING" $proposal done < <(jq -r < package.json '.agoricProposal["sdk-generate"][]') cd - done