Add update script
authorHugo Villeneuve <hugo@hugovil.com>
Thu, 5 Oct 2023 21:24:17 +0000 (17:24 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 7 Oct 2023 15:45:53 +0000 (11:45 -0400)
update.sh [new file with mode: 0755]

diff --git a/update.sh b/update.sh
new file mode 100755 (executable)
index 0000000..a662649
--- /dev/null
+++ b/update.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+git fetch --all
+git reset --hard origin/master
+
+if [ ! -d /usr/local/bin ]; then
+    sudo install -d /usr/local/bin/
+fi
+
+sudo install -m0755 fgen.sh /usr/local/bin/