From 8505ca3a4e834ca13a175adbda49d64accac4b19 Mon Sep 17 00:00:00 2001 From: Egor00f Date: Fri, 8 Nov 2024 18:04:47 +0000 Subject: [PATCH] use just profile --- install.sh | 4 ++-- package/DEBIAN/postrm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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