From d73b2827b1afa53c6bb7efdb9317325b1a4a15b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B3=D0=BE=D1=80?= <148970641+Egor00f@users.noreply.github.com> Date: Sun, 10 Nov 2024 11:15:06 +0000 Subject: [PATCH] update install.sh --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 6738eb8..6ab2db5 100755 --- a/install.sh +++ b/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!"