From edc32f9ca2729c502f2661d681a4f9591637067a Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Fri, 11 Feb 2022 21:17:44 +0100 Subject: [PATCH] Replace pwd by dirname --- main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.sh b/main.sh index ab4b96e..a8b9ac7 100755 --- a/main.sh +++ b/main.sh @@ -1,8 +1,8 @@ #!/bin/bash -source $(pwd)/variables.conf +source "$(dirname "$0")/variables.conf" -KEY="$(pwd)/dns.key" +KEY="$(dirname "$0")/dns.key" TTL=604800 FQDN=$(hostname)