Skip to content

Commit 1e9acae

Browse files
committed
update_latest.sh: copy all json files
Since it is not just latest.json that gets updated now, use a glob to copy all json files from the public directory.
1 parent c5416b2 commit 1e9acae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deploy/cron_scripts/update_latest.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -e
1010
REPO_DIR="/afs/sipb.mit.edu/project/hydrant/hydrant"
1111

1212
# The output directory, i.e. the one that has the folder being served to the
13-
# internet. In the locker, this is ~/web-scripts/hydrant.
13+
# internet. In the locker, this is ~/web_scripts/hydrant.
1414
OUT_DIR="/afs/sipb.mit.edu/project/hydrant/web_scripts/hydrant"
1515

1616
cd "$REPO_DIR/scrapers"
@@ -23,7 +23,7 @@ git pull -q
2323
# The scripts machine we use has Python 3.7, so use that.
2424
# This updates $OUT_FILE.
2525
python3.7 update.py
26-
OUT_FILE="$REPO_DIR/public/latest.json"
26+
OUT_FILE="$REPO_DIR/public/*.json"
2727

2828
# Copy $OUT_FILE to the output directory, so it can be served to the internet.
29-
cp "$OUT_FILE" "$OUT_DIR"
29+
cp $OUT_FILE "$OUT_DIR"

0 commit comments

Comments
 (0)