From 70921866cfd944ffcd8a4d35186640828c11d30a Mon Sep 17 00:00:00 2001 From: pedro Date: Tue, 24 Sep 2024 12:26:10 -0300 Subject: [PATCH] pxe: facilitate run --- pxe/install-pxe.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pxe/install-pxe.sh b/pxe/install-pxe.sh index 7ac4dde..c94c6af 100755 --- a/pxe/install-pxe.sh +++ b/pxe/install-pxe.sh @@ -59,6 +59,10 @@ END } init_config() { + + # get where the script is + cd "$(dirname "${0}")" + if [ -f ./.env ]; then . ./.env else