diff options
author | github-classroom[bot] <66690702+github-classroom[bot]@users.noreply.github.com> | 2023-09-13 01:02:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 01:02:13 +0000 |
commit | d9303149cb989e7af96b3964cf34018f295ba312 (patch) | |
tree | 82548dd03a24c98714fa54983c30d4b2f409da91 /util/update_from_stencil |
Initial commit
Diffstat (limited to 'util/update_from_stencil')
-rwxr-xr-x | util/update_from_stencil | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/util/update_from_stencil b/util/update_from_stencil new file mode 100755 index 0000000..6385b67 --- /dev/null +++ b/util/update_from_stencil @@ -0,0 +1,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 $@ |