From eb24b3e8b5b39b9b0e3e5847ddedb400c4c42e99 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 11 Jan 2024 02:26:54 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- wireguard/templates/root/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wireguard/templates/root/Makefile b/wireguard/templates/root/Makefile index a08b3cb..f616306 100644 --- a/wireguard/templates/root/Makefile +++ b/wireguard/templates/root/Makefile @@ -62,10 +62,9 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY) -e 's/\$${\CLIENT_PUBLIC_KEY}/'$$(sed -e 's/\//\\\//g' "$(CLIENT_DIR)/$*_id.pub")'/g' \ -e 's/\$${\SERVER_PUBLIC_KEY}/'$$(sed -e 's/\//\\\//g' "$(SERVER_PUBLIC_KEY)")'/g' \ >> "$(SERVER_CONF)" - @if [ -z "$$QRCODE" ] ; then \ - echo "# Profile: $*:" \ - qrencode -t UTF8 -r "$(CLIENT_DIR)/$*.conf" \ - fi + @ [ -z "$$QRCODE" ] \ + || ( echo "# Profile: $*:" \ + && qrencode -t UTF8 -r "$(CLIENT_DIR)/$*.conf" ) server: $(SERVER_CONF)