scripts/local-preview.sh: fix bind with no argument

Signed-off-by: Artur Raglis <artur.raglis@3mdeb.com>
This commit is contained in:
Artur Raglis
2025-01-31 18:05:19 +01:00
parent af7938e60d
commit 7ae3c13dfb
+2 -1
View File
@@ -1,3 +1,4 @@
#!/bin/bash
docker run --rm -it -v $PWD:/src -p 1313:1313 -u $(id -u) klakegg/hugo:0.105.0-ext-alpine serve -b $1
BASE_URL=${1:-http://localhost:1313}
docker run --rm -it -v $PWD:/src -p 1313:1313 -u $(id -u) klakegg/hugo:0.111.3-ext-alpine serve -b $BASE_URL