diff options
author | Nicholas DeMarinis <ndemarinis@wpi.edu> | 2023-09-12 11:02:30 -0400 |
---|---|---|
committer | Nicholas DeMarinis <ndemarinis@wpi.edu> | 2023-09-12 11:02:30 -0400 |
commit | eca13a00341f7f5ebb028f477e3d428db20b29f7 (patch) | |
tree | 72bd867428e6ce770efd0126e37a1c42c42401ef /util | |
parent | 0406ad88d420daec090eb164fba29efcd87e2ee9 (diff) |
Added stencil update binary.
Diffstat (limited to 'util')
-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 $@ |