From fb37fd61a83dae4f77178541624e9c034ac6b80f 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: Fri, 8 Nov 2024 21:55:09 +0500 Subject: [PATCH] Update install.sh --- install.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 3fe4ead..65ac1fc 100755 --- a/install.sh +++ b/install.sh @@ -123,10 +123,15 @@ sudo ln -sf /usr/lib/libmpfr.so.6 /usr/lib/libmpfr.so.4 print_ok "Successfully!" -if ! grep -q 'export PATH=$PATH:$TOOLCHAIN_DIR/win32/bin' ~/.bashrc; then - export PATH=$PATH:/home/autobuild/tools/win32/bin - print_msg "Adding '$TOOLCHAIN_DIR/win32/bin' to '~/.bashrc'" - echo 'export PATH=$PATH:$TOOLCHAIN_DIR/win32/bin' >> ~/.bashrc +if ! grep -q 'export PATH=$PATH:/home/autobuild/tools/win32/bin' ~/.bashrc; then + export PATH=$PATH:/home/autobuild/tools/win32/bin + print_msg "Adding '$TOOLCHAIN_DIR/win32/bin' to '~/.bashrc'" + echo 'export PATH=$PATH:/home/autobuild/tools/win32/bin' >> ~/.bashrc +fi + +if ! grep -q '$PATH:/home/autobuild/tools/win32/bin' /etc/profile; then + print_msg "Adding '/home/autobuild/tools/win32/bin' to '/etc/profiles'" + echo '$PATH:/home/autobuild/tools/win32/bin' >> /etc/profile fi cd "$OLDPWD"