diff --git a/CONFIG.sh b/CONFIG.sh index 0dddc95..f1d72cf 100644 --- a/CONFIG.sh +++ b/CONFIG.sh @@ -16,8 +16,7 @@ function set_system_release() { # ---- Setup Variables ---- # - -# Chroot path +SCRIPT_PATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"; CHROOT_PTH="./work/chroot" # Resolution of Xephyr... ex: 1920x1080 or 1600x900, etc @@ -52,6 +51,7 @@ LIVE_USER="" # ---- Call CONFIG Methods Here As Needed ---- # set_system_release; +cd "${SCRIPT_PATH}"; # ---- DO NOT CHANGE OR REMOVE UNLESS YOU KNOW WHAT YOU ARE DOING ---- # diff --git a/start.sh b/start.sh index 996ee86..c21f558 100755 --- a/start.sh +++ b/start.sh @@ -15,14 +15,11 @@ function main() { ./step_1_debootstrap.sh # Then setup and run chroot # ./step_2_chroot.sh - } function sanity_check() { clear; - SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"; - cd "${SCRIPTPATH}"; echo "Working Dir: " $(pwd) "\n"; # Make work structure diff --git a/step_1_debootstrap.sh b/step_1_debootstrap.sh old mode 100644 new mode 100755 diff --git a/step_2_chroot.sh b/step_2_chroot.sh old mode 100644 new mode 100755