Update install.sh

This commit is contained in:
Егор 2024-11-09 23:18:02 +05:00 committed by GitHub
parent f4e741746f
commit 2480b1a20b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,8 +30,9 @@ check_utils(){
pwd
DEFAULT_TOOLCHAIN_DIR="/home/autobuild/tools"
TOOLCHAIN_DIR="/home/autobuild/tools"
TOOLCHAIN_DIR=$DEFAULT_TOOLCHAIN_DIR
MESSAGE="Toolchain install path(default is $TOOLCHAIN_DIR): "
@ -132,7 +133,7 @@ sudo ln -sf /usr/lib/libmpfr.so.6 /usr/lib/libmpfr.so.4
print_ok "Successfully!"
sudo ln -sf $TOOLCHAIN_DIR $DEFAULT_TOOLCHAIN_DIR
if [ ! "$(id -u)" -ne 0 ]