quotes on script dir

for #25
This commit is contained in:
Alex "mcmonkey" Goodwin
2024-06-24 21:58:05 -07:00
parent c7f8b2b2ed
commit 1169692fb0
4 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
# Ensure correct local path.
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
cd "$SCRIPT_DIR"
# Accidental run prevention
if [ -d "SwarmUI" ]; then
@@ -26,7 +26,7 @@ wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x dotnet-install.sh
cd ..
# Note: manual installers that want to avoid home dir, add to both of the below lines: --install-dir $SCRIPT_DIR/.dotnet
# Note: manual installers that want to avoid home dir, add to both of the below lines: --install-dir "$SCRIPT_DIR/.dotnet"
./launchtools/dotnet-install.sh --channel 8.0 --runtime aspnetcore
./launchtools/dotnet-install.sh --channel 8.0

View File

@@ -2,7 +2,7 @@
# Ensure correct local path.
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
cd "$SCRIPT_DIR"
# Add dotnet non-admin-install to path
export PATH="$SCRIPT_DIR/.dotnet:~/.dotnet:$PATH"

View File

@@ -2,7 +2,7 @@
# Ensure correct local path.
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
cd "$SCRIPT_DIR"
export DOTNET_CLI_TELEMETRY_OPTOUT=1

View File

@@ -2,7 +2,7 @@
# Ensure correct local path.
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR
cd "$SCRIPT_DIR"
# Add dotnet non-admin-install to path
export PATH="$SCRIPT_DIR/.dotnet:~/.dotnet:$PATH"