Skip to content

Commit

Permalink
Debug print for download and extract tasks
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Nov 10, 2024
1 parent 246cd8d commit 42210d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@ function download() {
dlurl1="${dlbaseurl}/${dlname}-${version}.${dlext}"
dlurl2="${KXSTUDIO_FILES_URL}/${dlname}-${version}.${dlext}"
fi
echo "Downloading ${dlurl1}"
curl -L "${dlurl1}" -o "${dlfile}" --fail || curl -L "${dlurl2}" -o "${dlfile}" --fail
fi
fi

if [ ! -d "${dlfolder}" ]; then
mkdir "${dlfolder}"
echo "Extracting ${dlfile}"
md5sum "${dlfile}"
tar -xf "${dlfile}" -C "${dlfolder}" --strip-components=1
fi
}
Expand Down

0 comments on commit 42210d5

Please sign in to comment.