Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: donwload ncr again if it is not at the correct version #191

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ endif
.PHONY: help
TEST_DEPS := git jq npx
DEPLOY_DEPS := wget jq awk wc
NCR_VERSION := 1.39.8
NCR_URL := https://github.com/ForkbombEu/ncr/releases/download/v$(NCR_VERSION)/ncr

hn=$(shell hostname)

Expand All @@ -35,11 +37,11 @@ help: ## 🛟 Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-10s\033[0m %s\n", $$1, $$2}'

ncr: deps ## 📦 Install and setup the server
@if [ ! -f ./ncr ]; then \
wget -q --show-progress https://github.com/ForkbombEu/ncr/releases/download/v1.39.8/ncr; \
@if [ ! -x ./ncr ] || [ "$$(./ncr -v)" != "${NCR_VERSION}" ]; then \
wget -q --show-progress $(NCR_URL) -O ncr; \
chmod +x ./ncr; \
fi
@echo "📦 Setup is done!"
@echo "📦 Setup is done! Ncr version ${NCR_VERSION} installed"

authorize: deps ## 📦 Setup the authorize page
@chmod +x scripts/authorize.sh
Expand Down
Loading