fix access error & use / instead \ in postrm

This commit is contained in:
Егор 2024-11-11 08:29:28 +00:00
parent e07c12dacc
commit fd5c312c33
2 changed files with 5 additions and 2 deletions

View File

@ -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"

View File

@ -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