From d3ca4c25399c6ac32cb6f5c6cafaf558e5d3b5f2 Mon Sep 17 00:00:00 2001 From: wasabi Date: Fri, 30 May 2025 17:23:39 -0500 Subject: [PATCH] Updated install.sh and webinstall.sh to use similar install scripts --- install.sh | 2 +- webinstall.sh | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 163a387..1c975d2 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh unsupported_shell () { echo "Your shell $SHELL is not supported by this install script" diff --git a/webinstall.sh b/webinstall.sh index c7fde0d..42a2ef8 100755 --- a/webinstall.sh +++ b/webinstall.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh export DOWNLOADURL="" @@ -19,11 +19,10 @@ install () { echo "export STEAMTRICKS_PREFIX=\"$HOME/.steamtricks\"">>"${SHELLPROFILE}" fi - if [ -z "$(echo $PATH | grep 'steamtricks')" ]; then - echo "Install completed! Please source your profile $SHELLPROFILE to load the changes!" - fi - - echo "Install completed! Please source your profile $SHELLPROFILE to load the changes!" + if [ -z "$(echo $PATH | grep 'steamtricks')" ]; then + echo 'export PATH="$PATH:~/.steamtricks/bin"'>>${SHELLPROFILE} + fi + echo "Install completed! Please source your profile $SHELLPROFILE to load the changes!" } install_manager () {