aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhitlerrip <git@hitler.rip>2025-08-05 18:17:08 +0200
committerhitlerrip <git@hitler.rip>2025-08-05 18:17:08 +0200
commit05c6b9b34a14e3fa9abecea102204cff5a81ab46 (patch)
treea7a02d8ac686060c70b860b17421de85074f7a91
parentc31e5c9e0e237567095b367e165ef4dcc068da6e (diff)
downloadwebsite-05c6b9b34a14e3fa9abecea102204cff5a81ab46.tar.gz
website-05c6b9b34a14e3fa9abecea102204cff5a81ab46.tar.bz2
website-05c6b9b34a14e3fa9abecea102204cff5a81ab46.zip
fixed pub.sh
- fixed commands - added `git pull` to pub.sh to automatically update repo
-rwxr-xr-xpub.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/pub.sh b/pub.sh
index 18df7ee..bc81365 100755
--- a/pub.sh
+++ b/pub.sh
@@ -1,7 +1,8 @@
#!/bin/sh
-source ./build.sh
+git pull
+./build.sh
echo "=== publishing website! ==="
-rm -rf /srv/web/
+sudo rm -rf /srv/web/
sudo mkdir -p /srv/web/
sudo chown -R $(whoami):$(whoami) /srv/web/
cp ./web/* /srv/web/