pxe install: remove the duplicated dirname cd
This commit is contained in:
parent
abaf9a5829
commit
bb4a267ab5
|
@ -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
|
# 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
|
elif [ ! "${userid}" = 0 ] || [ -n "${SUDO_USER}" ]; then
|
||||||
SUDO='sudo'
|
SUDO='sudo'
|
||||||
# jump to current dir where the script is so relative links work
|
|
||||||
cd "$(dirname "${0}")"
|
|
||||||
# working directory to build the iso
|
# working directory to build the iso
|
||||||
ISO_PATH="iso"
|
ISO_PATH="iso"
|
||||||
# detect pure root
|
# detect pure root
|
||||||
|
@ -122,7 +120,7 @@ install_netboot() {
|
||||||
|
|
||||||
init_config() {
|
init_config() {
|
||||||
|
|
||||||
# get where the script is
|
# jump to current dir where the script is so relative links work
|
||||||
cd "$(dirname "${0}")"
|
cd "$(dirname "${0}")"
|
||||||
|
|
||||||
# this is what we put in the files we modity
|
# this is what we put in the files we modity
|
||||||
|
|
Loading…
Reference in New Issue