From eca13a00341f7f5ebb028f477e3d428db20b29f7 Mon Sep 17 00:00:00 2001 From: Nicholas DeMarinis Date: Tue, 12 Sep 2023 11:02:30 -0400 Subject: Added stencil update binary. --- util/update_from_stencil | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 util/update_from_stencil (limited to 'util') 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 $@ -- cgit v1.2.3-70-g09d2