Skip to content

Commit

Permalink
fix(files): Forgot to input -r flag for some jq calls
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftydinar authored Dec 1, 2024
1 parent a0518d5 commit 4f9ea44
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 '.["source"]')"
DEST=$(echo $pair | jq '.["destination"]')
FILE="$PWD/$(echo $pair | jq -r '.["source"]')"
DEST=$(echo $pair | jq -r '.["destination"]')
fi
if [ -d "$FILE" ]; then
if [ ! -d "$DEST" ]; then
Expand Down

0 comments on commit 4f9ea44

Please sign in to comment.