From bb4a267ab55601b974c122ec134fd4d54d31e268 Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 16 Oct 2024 22:52:02 +0200 Subject: [PATCH] pxe install: remove the duplicated dirname cd --- pxe/install-pxe.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pxe/install-pxe.sh b/pxe/install-pxe.sh index ee2fdd9..68c036a 100755 --- a/pxe/install-pxe.sh +++ b/pxe/install-pxe.sh @@ -17,8 +17,6 @@ detect_user() { # detect user with sudo or already on sudo src https://serverfault.com/questions/568627/can-a-program-tell-it-is-being-run-under-sudo/568628#568628 elif [ ! "${userid}" = 0 ] || [ -n "${SUDO_USER}" ]; then SUDO='sudo' - # jump to current dir where the script is so relative links work - cd "$(dirname "${0}")" # working directory to build the iso ISO_PATH="iso" # detect pure root @@ -122,7 +120,7 @@ install_netboot() { init_config() { - # get where the script is + # jump to current dir where the script is so relative links work cd "$(dirname "${0}")" # this is what we put in the files we modity