mirror of
https://github.com/Egor00f/kolibrios-gcc-toolchain.git
synced 2024-11-21 17:03:48 +01:00
update install.sh
This commit is contained in:
parent
5968d5a12b
commit
d73b2827b1
12
install.sh
12
install.sh
@ -145,8 +145,11 @@ EXPORT_MESSSAGE="export $MESSAGE"
|
||||
|
||||
if [ ! "$(id -u)" -ne 0 ]
|
||||
then
|
||||
print_msg "Add path to profile"
|
||||
|
||||
echo $MESSAGE >> /etc/profile
|
||||
|
||||
sudo mkdir -p /etc/kos32-gcc
|
||||
echo $TOOLCHAIN_DIR > /etc/kos32-gcc/install-path
|
||||
else
|
||||
if ! grep -q $EXPORT_MESSSAGE ~/.bashrc; then
|
||||
print_msg "Adding '$TOOLCHAIN_DIR/win32/bin' to '~/.bashrc'"
|
||||
@ -154,13 +157,10 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# WTF?!
|
||||
sudo /usr/bin/mkdir -p /etc/kos32-gcc
|
||||
echo $TOOLCHAIN_DIR | sudo tee /etc/kos32-gcc/install-path
|
||||
|
||||
|
||||
export $MESSAGE
|
||||
|
||||
|
||||
|
||||
cd "$OLDPWD"
|
||||
|
||||
print_ok "Installation was successful!"
|
||||
|
Loading…
Reference in New Issue
Block a user