Skip to content

Commit

Permalink
Fix(action.yml): Fix logic of copy
Browse files Browse the repository at this point in the history
  • Loading branch information
massimoschembri committed Jan 3, 2024
1 parent fe0df72 commit f6e850a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ runs:
if: ${{ inputs.upstream_copy != '' }}
shell: bash
run: |
MAPPINGS=$(echo "${{ inputs.upstream_copy }}" | tr '\n' ' ')
for mapping in ${MAPPINGS}; do
MAPPINGS=$(echo "${{ inputs.upstream_copy }}")
echo "${MAPPINGS}" | while read mapping; do
SRC=$(echo "$mapping" | awk '{print $1}')
DST=$(echo "$mapping" | awk '{print $2}')
echo Copying from ${SRC} to ${DST}
cp -Rv "upstream/${SRC}/*" "${DST}/"
cp -Rv upstream/${SRC}/* "${DST}/"
done

0 comments on commit f6e850a

Please sign in to comment.