makes capitalise func POSIX-compatible

This commit is contained in:
2026-07-03 09:20:19 +01:00
parent dcd2e1cd19
commit 6a23042b74
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ endef
define uninstall_nginx_module_rule = define uninstall_nginx_module_rule =
.PHONY: uninstall_nginx_$(module) .PHONY: uninstall_nginx_$(module)
uninstall_nginx_$(module): uninstall_nginx_$(module):
(if $(SUBDOMAIN_$(module)),rm -f /etc/nginx/http.d/$(SUBDOMAIN_$(module)).joeac.net.conf) $(if $(SUBDOMAIN_$(module)),rm -f /etc/nginx/http.d/$(SUBDOMAIN_$(module)).joeac.net.conf)
endef endef
define remove_nginx_site_rule = define remove_nginx_site_rule =
+1 -1
View File
@@ -1,4 +1,4 @@
capitalise = $(shell _v="$(1)"; echo $${_v^^}) capitalise = $(shell echo "$(1)" | tr '[:lower:]' '[:upper:]')
USER := $(shell whoami) USER := $(shell whoami)
HOSTNAME := $(shell cat /etc/hostname) HOSTNAME := $(shell cat /etc/hostname)