mirror of
https://github.com/Egor00f/kolibrios-gcc-toolchain.git
synced 2025-09-20 18:00:07 +02:00
fix
This commit is contained in:
15
install.sh
15
install.sh
@@ -35,17 +35,12 @@ check_utils(){
|
||||
fi
|
||||
}
|
||||
|
||||
if [ test -f $INSTALL_PATH_FILE ]; then
|
||||
TOOLCHAIN_DIR=$(head -n 1 $INSTALL_PATH_FILE)
|
||||
else
|
||||
echo -n -e "\e[0mToolchain install path \e[90m(default is $DEFAULT_TOOLCHAIN_DIR)\e[97m: "
|
||||
read INPUT
|
||||
TOOLCHAIN_DIR=$(head -n 1 $INSTALL_PATH_FILE)
|
||||
echo -n -e "\e[0mToolchain install path \e[90m(default is $TOOLCHAIN_DIR)\e[97m: "
|
||||
read INPUT
|
||||
|
||||
if [[ ! -z "$INPUT" ]]; then
|
||||
TOOLCHAIN_DIR=$INPUe
|
||||
else
|
||||
TOOLCHAIN_DIR=$DEFAULT_TOOLCHAIN_DIR
|
||||
fi
|
||||
if [[ ! -z "$INPUT" ]]; then
|
||||
TOOLCHAIN_DIR=$INPUT
|
||||
fi
|
||||
|
||||
print_msg "Checking utilities..."
|
||||
|
@@ -35,17 +35,12 @@ check_utils(){
|
||||
fi
|
||||
}
|
||||
|
||||
if [ test -f $INSTALL_PATH_FILE ]; then
|
||||
TOOLCHAIN_DIR=$(head -n 1 $INSTALL_PATH_FILE)
|
||||
else
|
||||
echo -n -e "\e[0mToolchain install path \e[90m(default is $DEFAULT_TOOLCHAIN_DIR)\e[97m: "
|
||||
read INPUT
|
||||
TOOLCHAIN_DIR=$(head -n 1 $INSTALL_PATH_FILE)
|
||||
echo -n -e "\e[0mToolchain install path \e[90m(default is $TOOLCHAIN_DIR)\e[97m: "
|
||||
read INPUT
|
||||
|
||||
if [[ ! -z "$INPUT" ]]; then
|
||||
TOOLCHAIN_DIR=$INPUe
|
||||
else
|
||||
TOOLCHAIN_DIR=$DEFAULT_TOOLCHAIN_DIR
|
||||
fi
|
||||
if [[ ! -z "$INPUT" ]]; then
|
||||
TOOLCHAIN_DIR=$INPUT
|
||||
fi
|
||||
|
||||
echo -e "\e[0mInstalling toolchain to \e[97m$TOOLCHAIN_DIR\e[0m"
|
||||
@@ -117,8 +112,6 @@ EXPORT_MESSSAGE="export $MESSAGE"
|
||||
if [ ! "$(id -u)" -ne 0 ]
|
||||
then
|
||||
echo $MESSAGE >> /etc/profile
|
||||
|
||||
sudo mkdir -p $CONFIG_FOLDER
|
||||
echo $TOOLCHAIN_DIR > $INSTALL_PATH_FILE
|
||||
else
|
||||
if ! grep -q $EXPORT_MESSSAGE ~/.bashrc; then
|
||||
|
1
package/etc/kos32-gcc/install-path
Normal file
1
package/etc/kos32-gcc/install-path
Normal file
@@ -0,0 +1 @@
|
||||
/home/autobuild/tools
|
Reference in New Issue
Block a user