diff --git a/install.sh b/install.sh index c090c5f..4be146f 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/package/DEBIAN/postrm b/package/DEBIAN/postrm index ad2f7a1..0c9e972 100755 --- a/package/DEBIAN/postrm +++ b/package/DEBIAN/postrm @@ -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