From b8d94f52785471da9faa58b6986ac00c3149f3f9 Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Tue, 27 Apr 2021 15:01:59 +0000 Subject: [PATCH] setup.sh: Quote full args instead of just bash variables More in line with the rest of scripts and is easier to mentally parse. Signed-off-by: Manuel Mendez --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 5680601..2164490 100755 --- a/setup.sh +++ b/setup.sh @@ -347,8 +347,8 @@ generate_certificates() ( local certs_dir="/etc/docker/certs.d/$TINKERBELL_HOST_IP" # copy public key to NGINX for workers - if ! cmp --quiet "$STATEDIR"/certs/ca.pem "$STATEDIR/webroot/workflow/ca.pem"; then - cp "$STATEDIR"/certs/ca.pem "$STATEDIR/webroot/workflow/ca.pem" + if ! cmp --quiet "$STATEDIR/certs/ca.pem" "$STATEDIR/webroot/workflow/ca.pem"; then + cp "$STATEDIR/certs/ca.pem" "$STATEDIR/webroot/workflow/ca.pem" fi # update host to trust registry certificate