mirror of
https://github.com/Egor00f/kolibrios-gcc-toolchain.git
synced 2025-09-20 18:00:07 +02:00
fix install.sh
This commit is contained in:
19
install.sh
19
install.sh
@@ -35,14 +35,23 @@ check_utils(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
TOOLCHAIN_DIR=$(head -n 1 $INSTALL_PATH_FILE)
|
if [ -f $INSTALL_PATH_FILE ]; then
|
||||||
echo -n -e "\e[0mToolchain install path \e[90m(default is $TOOLCHAIN_DIR)\e[97m: "
|
TOOLCHAIN_DIR=$(head -n 1 $INSTALL_PATH_FILE)
|
||||||
read INPUT
|
else
|
||||||
|
echo -n -e "\e[0mToolchain install path \e[90m(default is $DEFAULT_TOOLCHAIN_DIR)\e[97m: "
|
||||||
if [[ ! -z "$INPUT" ]]; then
|
read INPUT
|
||||||
|
if [[ ! -z "$INPUT" ]]; then
|
||||||
TOOLCHAIN_DIR=$INPUT
|
TOOLCHAIN_DIR=$INPUT
|
||||||
|
if [[ ! -z "$INPUT" ]]; then
|
||||||
|
TOOLCHAIN_DIR=$INPUe
|
||||||
|
else
|
||||||
|
TOOLCHAIN_DIR=$DEFAULT_TOOLCHAIN_DIR
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -e "\e[0mInstalling toolchain to \e[97m$TOOLCHAIN_DIR\e[0m"
|
||||||
|
|
||||||
print_msg "Checking utilities..."
|
print_msg "Checking utilities..."
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user