From 32094c7979687c0c69a558f7de7350c98e9067f3 Mon Sep 17 00:00:00 2001
From: William Warriner <wwarr@uab.edu>
Date: Fri, 11 Oct 2024 14:03:18 -0500
Subject: [PATCH] create site pulling script

---
 pull-site.sh | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100755 pull-site.sh

diff --git a/pull-site.sh b/pull-site.sh
new file mode 100755
index 0000000..0ad410b
--- /dev/null
+++ b/pull-site.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ -d site/ ]; then
+  echo "Delete the site/ directory before pulling site data."
+  exit 1
+fi
+
+curl -LO https://github.com/uabrc/uabrc.github.io/archive/refs/heads/gh-pages.tar.gz
+mkdir -p site/
+tar -xvf gh-pages.tar.gz -C site/
+mv site/uabrc.github.io-gh-pages/{.[!.]*,*} site/
+rmdir site/uabrc.github.io-gh-pages
+rm gh-pages.tar.gz
-- 
GitLab