-
Notifications
You must be signed in to change notification settings - Fork 67
/
sync.sh
17 lines (12 loc) · 1.26 KB
/
sync.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# Usage: curl -s https://raw.githubusercontent.com/CEU-Economics-and-Business/ECBS-5147-Data-Engineering-2-Cloud-Computing/main/requirements.txt > requirements.txt && curl -s https://raw.githubusercontent.com/CEU-Economics-and-Business/ECBS-5147-Data-Engineering-2-Cloud-Computing/main/requirements.in > requirements.in && rm -rf serverless && curl -L https://github.com/CEU-Economics-and-Business/ECBS-5147-Data-Engineering-2-Cloud-Computing/archive/main.zip | bsdtar -xf - --strip=1 "ECBS-5147-Data-Engineering-2-Cloud-Computing-main/serverless"
echo "Syncing with template repository..."
# Update requirements files
curl -s https://raw.githubusercontent.com/CEU-Economics-and-Business/ECBS-5147-Data-Engineering-2-Cloud-Computing/main/requirements.txt > requirements.txt
curl -s https://raw.githubusercontent.com/CEU-Economics-and-Business/ECBS-5147-Data-Engineering-2-Cloud-Computing/main/requirements.in > requirements.in
# Sync serverless folder
rm -rf serverless
curl -sL https://github.com/CEU-Economics-and-Business/ECBS-5147-Data-Engineering-2-Cloud-Computing/archive/main.zip | bsdtar -xf - --strip=1 "ECBS-5147-Data-Engineering-2-Cloud-Computing-main/serverless"
# Install requirements
pip install -r requirements.txt
echo "Sync completed! Requirements installed."