From 8ce64c68ef0d1e80191434b7045004b7da8e6a39 Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Mon, 2 Aug 2021 17:00:54 -0500 Subject: [PATCH] Sanity check creating dirs in Makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2c69d64..8136378 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ dir: - mkdir -p /usr/local/share/removeadhosts + if [ ! -d /usr/local/share/removeadhosts ];then mkdir -p /usr/local/share/removeadhosts;fi + if [ ! -d /etc/removeadhosts ];then mkdir /etc/removeadhosts;fi install: dir - mkdir /etc/removeadhosts touch /etc/removeadhosts/ads.txt cp src/* /usr/local/share/removeadhosts/ chown -R root:root /usr/local/share/removeadhosts