Skip to content

Commit

Permalink
Quoted variables
Browse files Browse the repository at this point in the history
  • Loading branch information
spoutn1k committed Jan 6, 2024
1 parent 56c3220 commit eb63c00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/average.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

set -eo pipefail

SYSTEM=$(uname)
SYSTEM="$(uname)"
EXTRACTDIR=/tmp/extracted_blocks

macos::install_deps() {
Expand All @@ -18,11 +18,11 @@ macos::install_deps() {
}

macos::mc_home() {
echo "$HOME/Library/Application Support/minecraft/versions"
echo $HOME/Library/Application Support/minecraft/versions
}

linux::mc_home() {
echo "$HOME/.minecraft/versions"
echo $HOME/.minecraft/versions
}

unpack_assets() {
Expand Down Expand Up @@ -50,7 +50,7 @@ unpack_assets() {
}

average() {
FILE=$1
FILE="$1"
EXTRACTED="$EXTRACTDIR/$MINECRAFT_VER/assets/minecraft/textures/block/$1.png"
if [[ -f "$EXTRACTED" ]] ; then
FILE="$EXTRACTED"
Expand All @@ -73,4 +73,4 @@ if [[ "$SYSTEM" == Darwin ]] ; then
fi
fi

average $1
average "$1"

0 comments on commit eb63c00

Please sign in to comment.