From 025dd20a253118a39d86ae62d0847e496db0ee68 Mon Sep 17 00:00:00 2001 From: bakustarver <66978329+bakustarver@users.noreply.github.com> Date: Mon, 18 Nov 2024 19:01:08 +0200 Subject: [PATCH] Update install.sh --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 0d22281..be8c558 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash installpath=$(dirname "$0") -version='1.1.0' +version='1.1.4' if ! [ -d "$installpath/nwjs" ]; then echo "Can't find nwjs folder" exit 1; @@ -125,6 +125,12 @@ xdg-mime default nwjsoptions.desktop x-scheme-handler/rpgmakermp echo "Installation Done" +if [ ! -f "$HOME/.profile" ]; then +if [ ! -f "$HOME/.bash_profile" ] || ! cat "$HOME/.bash_profile" | grep -q ".local/bin"; then +echo 'if [ -d "$HOME/.local/bin" ]; then export PATH="$PATH:$HOME/.local/bin" ; fi' >> ~/.bash_profile +fi +fi + if [ -d "$HOME/.steam/" ]; then steamcompatibilitytoolinstaller "$compatibilitytoolsfddef"