Skip to content

Commit

Permalink
update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor00f committed Nov 10, 2024
1 parent 5968d5a commit d73b282
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,21 +145,21 @@ EXPORT_MESSSAGE="export $MESSAGE"

if [ ! "$(id -u)" -ne 0 ]
then
print_msg "Add path to profile"

echo $MESSAGE >> /etc/profile

sudo mkdir -p /etc/kos32-gcc
echo $TOOLCHAIN_DIR > /etc/kos32-gcc/install-path
else
if ! grep -q $EXPORT_MESSSAGE ~/.bashrc; then
print_msg "Adding '$TOOLCHAIN_DIR/win32/bin' to '~/.bashrc'"
echo $EXPORT_MESSSAGE >> ~/.bashrc
fi
fi

# WTF?!
sudo /usr/bin/mkdir -p /etc/kos32-gcc
echo $TOOLCHAIN_DIR | sudo tee /etc/kos32-gcc/install-path
export $MESSAGE


export $MESSAGE

cd "$OLDPWD"

Expand Down

0 comments on commit d73b282

Please sign in to comment.