Use latest for templ CLI in justfile
This commit is contained in:
@@ -7,7 +7,7 @@ templ-install:
|
|||||||
@if ! command -v templ > /dev/null; then \
|
@if ! command -v templ > /dev/null; then \
|
||||||
read -p "Go's 'templ' is not installed on your machine. Do you want to install it? [Y/n] " choice; \
|
read -p "Go's 'templ' is not installed on your machine. Do you want to install it? [Y/n] " choice; \
|
||||||
if [ "$$choice" != "n" ] && [ "$$choice" != "N" ]; then \
|
if [ "$$choice" != "n" ] && [ "$$choice" != "N" ]; then \
|
||||||
go install github.com/a-h/templ/cmd/templ@v0.3.1020; \
|
go install github.com/a-h/templ/cmd/templ@latest; \
|
||||||
if [ ! -x "$$(command -v templ)" ]; then \
|
if [ ! -x "$$(command -v templ)" ]; then \
|
||||||
echo "templ installation failed. Exiting..."; \
|
echo "templ installation failed. Exiting..."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
|
|||||||
Reference in New Issue
Block a user