From fd5c312c33e8fa63ec4a3943b324fa1c3b8baf18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B3=D0=BE=D1=80?= <148970641+Egor00f@users.noreply.github.com> Date: Mon, 11 Nov 2024 08:29:28 +0000 Subject: [PATCH] fix access error & use / instead \ in postrm --- install.sh | 5 ++++- package/DEBIAN/postrm | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 3528330..181cc14 100755 --- a/install.sh +++ b/install.sh @@ -161,7 +161,10 @@ fi export $MESSAGE - +sudo chmod 775 $TOOLCHAIN_DIR/win32/bin/* +sudo chmod 775 $TOOLCHAIN_DIR/win32/include/* +sudo chmod 775 $TOOLCHAIN_DIR/win32/lib/gcc/mingw32/5.4.0/include/* +sudo chmod 775 $TOOLCHAIN_DIR/win32/lib/gcc/mingw32/5.4.0/include/c++/* cd "$OLDPWD" diff --git a/package/DEBIAN/postrm b/package/DEBIAN/postrm index 30e207b..20eddeb 100755 --- a/package/DEBIAN/postrm +++ b/package/DEBIAN/postrm @@ -2,7 +2,7 @@ TOOLCHAIN_DIR=$(head -n 1 /etc/kos32-gcc/install-path) -MESSAGE="PATH=\$PATH:$TOOLCHAIN_DIR\win32\bin" +MESSAGE="PATH=\$PATH:$TOOLCHAIN_DIR/win32/bin" if grep -q '$MESSAGE' /etc/profile; then sudo sed -i '/$MESSAGE/d' /etc/profile