aboutsummaryrefslogtreecommitdiff
path: root/util/update_from_stencil
blob: 6385b676ef8360ab76e296823531dccb2a578f7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -euo pipefail

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
REPO_DIR=$(realpath ${SCRIPT_DIR}/..)

STENCIL_REPO=http://github.com/brown-csci1680/snowcast-template

main() {
    git remote rm stencil || true
    git remote add stencil $STENCIL_REPO

    git pull stencil main
}


main $@