aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNicholas DeMarinis <ndemarinis@wpi.edu>2023-09-12 11:02:30 -0400
committerNicholas DeMarinis <ndemarinis@wpi.edu>2023-09-12 11:02:30 -0400
commiteca13a00341f7f5ebb028f477e3d428db20b29f7 (patch)
tree72bd867428e6ce770efd0126e37a1c42c42401ef /util
parent0406ad88d420daec090eb164fba29efcd87e2ee9 (diff)
Added stencil update binary.
Diffstat (limited to 'util')
-rwxr-xr-xutil/update_from_stencil18
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 $@