We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c9a25 commit 02d7660Copy full SHA for 02d7660
dev-setup.sh
@@ -1,12 +1,26 @@
1
#!/bin/bash
2
3
+function install_required_hugo {
4
+ if command -v hugo; then
5
+ VER=$(hugo version | cut -d' ' -f2 | cut -d'-' -f1)
6
+ if [[ $VER != "v0.145.0" ]]; then
7
+ echo "Unsupported hugo version: $VER, please install hugo v0.145.0" 1>&2
8
+ exit 2
9
+ fi
10
+ else
11
+ go install github.com/gohugoio/[email protected]
12
13
+}
14
+
15
function check_python_pkg {
16
python -c "import $1" >/dev/null 2>&1
17
}
18
19
# fail fast by exiting on first error
20
set -e
21
22
+install_required_hugo
23
24
# Install uv and create a project-scoped venv with pre-commit installed
25
export PATH="$HOME/.local/bin:$PATH"
26
ret=$(command -v uv)
0 commit comments