From f1bc88451686ef0eaa84a129acc979c29c2a72b7 Mon Sep 17 00:00:00 2001 From: Nevernown Date: Sun, 6 Apr 2025 17:13:51 +0200 Subject: [PATCH] added example update script --- src/layout/math.astro | 4 ++-- update.sh | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 update.sh diff --git a/src/layout/math.astro b/src/layout/math.astro index 2b1548b..2b33234 100644 --- a/src/layout/math.astro +++ b/src/layout/math.astro @@ -11,8 +11,8 @@ const { frontmatter } = Astro.props;
diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..5cb9555 --- /dev/null +++ b/update.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ "$1" == "" ]; then + echo "Excpected a commit message when running $0" + exit 1 +else + npm run build + git add dist/ + git commit -m "$1" + git push +fi \ No newline at end of file