Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Jan 31, 2024
1 parent 7340a27 commit ae86238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/download_blender.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ declare -A BLENDER_CHECKSUM_URL_PATTERN=(

function get_extractor() {
local file_extension=${1}
local extractor
local extractor=""

if [ "${file_extension}" = "zip" ]; then
extractor="unzip"
Expand Down Expand Up @@ -129,7 +129,7 @@ function download_blender() {
filename="$(basename "${url}")"
filepath="${download_dir}/${filename}"

local extractor
local extractor=""
extractor=$(get_extractor "${file_extension}")
if [ -z "${extractor}" ]; then
echo "Error: Unknown file extension '${file_extension}'"
Expand Down

0 comments on commit ae86238

Please sign in to comment.