From 832920858efc737cc0462d84888b1fda06122009 Mon Sep 17 00:00:00 2001 From: Alexander Lingtorp Date: Tue, 28 May 2019 11:43:49 +0200 Subject: [PATCH] Escaped dollar sign of OSTYPE call According to this https://stackoverflow.com/questions/2382764/escaping-in-makefile you need TWO dollar signs to escape the dollar sign. This fixes the problem in macOS while running 'sudo make' from the instructions. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 536e83f..3ebed5e 100644 --- a/Makefile +++ b/Makefile @@ -7,5 +7,5 @@ TARGET = /usr/local/bin/ihsec install: bash bash: - if [[ "$OSTYPE" == "darwin"* ]]; then cp ihsec.sh ${TARGET}; chmod 755 ${TARGET}; else install -D -m 755 ihsec.sh ${TARGET}; fi + if [[ "$$OSTYPE" == "darwin"* ]]; then cp ihsec.sh ${TARGET}; chmod 755 ${TARGET}; else install -D -m 755 ihsec.sh ${TARGET}; fi