diff --git a/install.sh b/install.sh index ae5117f..f5c76c0 100755 --- a/install.sh +++ b/install.sh @@ -130,8 +130,7 @@ if ! grep -q 'export PATH=$PATH:/home/autobuild/tools/win32/bin' ~/.bashrc; then fi if [ "$EUID" -ne 0 ] then - if ! grep -q '$PATH:/home/autobuild/tools/win32/bin' /etc/profile; then - print_msg "Adding '/home/autobuild/tools/win32/bin' to '/etc/profiles'" + if [ ! -f /etc/profile.d/KolibriOS-Toolchain.sh ] then sudo echo '$PATH:/home/autobuild/tools/win32/bin' >> /etc/profile.d/KolibriOS-Toolchain.sh fi fi diff --git a/package/DEBIAN/postrm b/package/DEBIAN/postrm index 1df6a88..ad2f7a1 100755 --- a/package/DEBIAN/postrm +++ b/package/DEBIAN/postrm @@ -1,4 +1,4 @@ #!/bin/bash rm -R /home/autobuild/tools/win32 -rm /etc/profiles.d/KolibriOS-Toolchain.sh +rm /etc/profile.d/KolibriOS-Toolchain.sh