Fix curl in datapack

This commit is contained in:
LinuxSquare 2024-01-06 17:10:01 +01:00
parent 2c664f3c06
commit 2554113aa2
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# CONSTANTS
readonly PKGVER="0.2.2"
readonly PKGVER="0.2.3"
readonly LICENSE="GNU AGPLv3"
readonly ROOTPATH="$(dirname $(readlink -f $(which $0)))"
readonly TEMPLATEDIR="${ROOTPATH}/.template"

View file

@ -8,5 +8,5 @@ function datapack() {
local dir="$(getValueByKey 'PODMAN_DIRECTORY')/${1}/data/world/datapacks"
curl "${2}" -o "$dir/$(echo $2 | awk -F/ '{print $NF}')"
curl -L "${2}" -o "$dir/$(echo $2 | awk -F/ '{print $NF}')"
}