use just profile

This commit is contained in:
Егор 2024-11-08 18:04:47 +00:00
parent 9262ee0fa4
commit 8505ca3a4e
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -1,4 +1,4 @@
#!/bin/bash
rm -R /home/autobuild/tools/win32
rm /etc/profile.d/KolibriOS-Toolchain.sh
sed 'PATH=$PATH:/home/autobuild/tools/win32/bin' /etc/profile