Skip to content

Commit 36cd602

Browse files
Placeholder merge.sh script
1 parent 11eee0b commit 36cd602

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

merge.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
here's what this script needs to do:
6+
1. Validate that it has the necessary ENV variables for S3 upload access
7+
2. accept the URL to a JSON config file
8+
3. download the config file and validate that it has the necessary fields
9+
4. download each GTFS feed specified in the config file to a temp directory
10+
5. run the OneBusAway GTFS merge CLI to merge the feeds using the processing instructions in the config file
11+
6. validate the merged feed(?)
12+
7. upload the merged feed to the specified S3 bucket
13+
14+
echo "Starting GTFS merge process..."
15+
echo "$@"

0 commit comments

Comments
 (0)