Update install.sh

This commit is contained in:
Егор 2024-11-08 21:55:09 +05:00 committed by GitHub
parent 2346cbda4a
commit fb37fd61a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,10 +123,15 @@ sudo ln -sf /usr/lib/libmpfr.so.6 /usr/lib/libmpfr.so.4
print_ok "Successfully!" print_ok "Successfully!"
if ! grep -q 'export PATH=$PATH:$TOOLCHAIN_DIR/win32/bin' ~/.bashrc; then if ! grep -q 'export PATH=$PATH:/home/autobuild/tools/win32/bin' ~/.bashrc; then
export PATH=$PATH:/home/autobuild/tools/win32/bin export PATH=$PATH:/home/autobuild/tools/win32/bin
print_msg "Adding '$TOOLCHAIN_DIR/win32/bin' to '~/.bashrc'" print_msg "Adding '$TOOLCHAIN_DIR/win32/bin' to '~/.bashrc'"
echo 'export PATH=$PATH:$TOOLCHAIN_DIR/win32/bin' >> ~/.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 fi
cd "$OLDPWD" cd "$OLDPWD"