This commit is contained in:
Егор 2024-11-08 17:18:44 +00:00
parent 048965ba75
commit 53343866d9
2 changed files with 6 additions and 3 deletions

View File

@ -129,9 +129,11 @@ 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 ! grep -q '$PATH:/home/autobuild/tools/win32/bin' /etc/profile; then if (whoami != root)
print_msg "Adding '/home/autobuild/tools/win32/bin' to '/etc/profiles'" if ! grep -q '$PATH:/home/autobuild/tools/win32/bin' /etc/profile; then
sudo echo '$PATH:/home/autobuild/tools/win32/bin' >> /etc/profile print_msg "Adding '/home/autobuild/tools/win32/bin' to '/etc/profiles'"
sudo echo '$PATH:/home/autobuild/tools/win32/bin' >> /etc/profile.d/KolibriOS-Toolchain.sh
fi
fi fi
cd "$OLDPWD" cd "$OLDPWD"

View File

@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
rm -R /home/autobuild/tools/win32 rm -R /home/autobuild/tools/win32
rm /etc/profiles.d/KolibriOS-Toolchain.sh