Skip to content

Commit

Permalink
Update modules/files/files.sh
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
fiftydinar and github-actions[bot] authored Dec 1, 2024
1 parent 81ec319 commit 66c0fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/files/files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ if [[ ${#FILES[@]} -gt 0 ]]; then
FILE="$PWD/$(echo $pair | jq -r 'to_entries | .[0].key')"
DEST=$(echo $pair | jq -r 'to_entries | .[0].value')
else
FILE="$PWD/$(echo $pair | jq -r 'try .["source"]')"
DEST=$(echo $pair | jq -r 'try .["destination"]')
FILE="$PWD/$(echo "$pair" | jq -r 'try .["source"]')"
DEST=$(echo "$pair" | jq -r 'try .["destination"]')
fi
if [ -d "$FILE" ]; then
if [ ! -d "$DEST" ]; then
Expand Down

0 comments on commit 66c0fd9

Please sign in to comment.