added bash script to test website locally

This commit is contained in:
antifallobst 2023-03-15 18:03:21 +01:00
parent 90edb8accf
commit da59a470d6
1 changed files with 11 additions and 0 deletions

11
test Executable file
View File

@ -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