From a90a02de6a4d43f5f4fb9fb7fa0d4b23fff0bb01 Mon Sep 17 00:00:00 2001 From: kPshi Date: Fri, 30 Oct 2020 22:09:39 +0000 Subject: [PATCH] choose repodir based on script location --- youtube.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube.sh b/youtube.sh index 5d29505..bbef606 100755 --- a/youtube.sh +++ b/youtube.sh @@ -9,8 +9,8 @@ piholeIPV4=$(hostname -I |awk '{print $1}') piholeIPV6=$(hostname -I |awk '{print $2}') -# This need to be chnaged to your actual repo dir on your machine -repoDir='/pi/youTube_ads_4_pi-hole' +# This may be changed to your actual repo dir on your machine +repoDir="$(dirname "$0")" blackListFile='/etc/pihole/black.list' blacklist='/etc/pihole/blacklist.txt'