From e63568bc9ca0f3096082c884b55b6e67eb0d06b0 Mon Sep 17 00:00:00 2001 From: Egor00f Date: Fri, 8 Nov 2024 17:34:25 +0000 Subject: [PATCH] try fix --- install.sh | 3 +-- package/DEBIAN/postrm | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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