fix install.sh

This commit is contained in:
Егор 2024-11-08 17:45:07 +00:00
parent e63568bc9c
commit eb61d5f483

View File

@ -129,10 +129,18 @@ if ! grep -q 'export PATH=$PATH:/home/autobuild/tools/win32/bin' ~/.bashrc; then
echo 'export PATH=$PATH:/home/autobuild/tools/win32/bin' >> ~/.bashrc echo 'export PATH=$PATH:/home/autobuild/tools/win32/bin' >> ~/.bashrc
fi fi
if [ "$EUID" -ne 0 ] then if [ ("$EUID" -ne 0) -o (! -f /etc/profile.d/KolibriOS-Toolchain.sh) ]
if [ ! -f /etc/profile.d/KolibriOS-Toolchain.sh ] then then
sudo echo '$PATH:/home/autobuild/tools/win32/bin' >> /etc/profile.d/KolibriOS-Toolchain.sh echo '$PATH:/home/autobuild/tools/win32/bin' >> /etc/profile.d/KolibriOS-Toolchain.sh
fi else
print_err "You must be logined as root!"
fi
if ["$EUID" -ne 0 ] && [ ! -f /etc/profile.d/KolibriOS-Toolchain.sh ]
then
echo '$PATH:/home/autobuild/tools/win32/bin' >> /etc/profile.d/KolibriOS-Toolchain.sh
else
print_msg "You must be logined as root!"
fi fi
cd "$OLDPWD" cd "$OLDPWD"