-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,5 @@ log/ | |
|
||
# .env contains secret API keys | ||
.env | ||
|
||
guru_cards*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "${GURU_CARDS_URL_ID}" ]; then | ||
echo "Please set GURU_CARDS_URL_ID to the Google Drive file ID of the Guru cards zip file." | ||
echo "Copy it from the URL -- it looks like: 1AO-AbCDeF1234567890abcdefgh" | ||
echo "Example usage: GURU_CARDS_URL_ID=1AO-AbCDeF1234567890abcdefgh ./get_input_files.sh" | ||
exit 1 | ||
fi | ||
|
||
set -e | ||
|
||
GURU_CARDS_URL="https://docs.google.com/uc?export=download&id=${GURU_CARDS_URL_ID}" | ||
echo "Downloading from ${GURU_CARDS_URL}" | ||
curl -f -L "${GURU_CARDS_URL}" -o /tmp/download.zip | ||
unzip -o /tmp/download.zip | ||
rm -v /tmp/download.zip | ||
mv -v guru_cards_for_nava--Multi-benefit.json guru_cards_for_nava.json |