Skip to content

Commit

Permalink
fixuop
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 4, 2024
1 parent ec8ab9d commit d8f9dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/insert-nids.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ fi
# extract sheet ID from https://docs.google.com/spreadsheets/d/foo/edit?gid=0#gid=0
SHEET_ID=$(echo "$URL" | sed -n 's|.*/d/\(.*\)|\1|p')
API_URL="https://sheets.googleapis.com/v4/spreadsheets/$SHEET_ID/values/Sheet1!D2:append"
PAYLOAD=$(tail +4 /tmp/rollback.csv | jq -R . | jq -s '{"values": .}')
PAYLOAD=$(tail +4 /tmp/rollback.csv | jq -R '[.]' | jq -s '{"values": .}')

curl -s -X POST \
curl -v -s -X POST \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data @<(echo "$PAYLOAD") \
Expand Down

0 comments on commit d8f9dcb

Please sign in to comment.