From 53343866d98a386c8d66a01df3c2723afbbb46ef Mon Sep 17 00:00:00 2001 From: Egor00f Date: Fri, 8 Nov 2024 17:18:44 +0000 Subject: [PATCH] update --- install.sh | 8 +++++--- package/DEBIAN/postrm | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 8db49c2..58895fe 100755 --- a/install.sh +++ b/install.sh @@ -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 fi -if ! grep -q '$PATH:/home/autobuild/tools/win32/bin' /etc/profile; then - print_msg "Adding '/home/autobuild/tools/win32/bin' to '/etc/profiles'" - sudo echo '$PATH:/home/autobuild/tools/win32/bin' >> /etc/profile +if (whoami != root) + if ! grep -q '$PATH:/home/autobuild/tools/win32/bin' /etc/profile; then + 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 cd "$OLDPWD" diff --git a/package/DEBIAN/postrm b/package/DEBIAN/postrm index 6e9c374..1df6a88 100755 --- a/package/DEBIAN/postrm +++ b/package/DEBIAN/postrm @@ -1,3 +1,4 @@ #!/bin/bash rm -R /home/autobuild/tools/win32 +rm /etc/profiles.d/KolibriOS-Toolchain.sh