From da59a470d6ec79db01b45b027df8ab67b3ed2b42 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Wed, 15 Mar 2023 18:03:21 +0100 Subject: [PATCH] added bash script to test website locally --- test | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 test diff --git a/test b/test new file mode 100755 index 0000000..03abcda --- /dev/null +++ b/test @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +open_browser() { + sleep 1 + xdg-open http://localhost:1313 +} + +hugo server & PID_HUGO=$! +open_browser & PID_BROWSER=$! +wait $PID_HUGO +wait $PID_BROWSER