add logic for fetching correct game version
This commit is contained in:
parent
c90f15c9fb
commit
4c246efbf7
@ -98,12 +98,18 @@ RUN \
|
||||
mkdir -p \
|
||||
/defaults/games && \
|
||||
cp -pr /usr/share/minetest/games/* /defaults/games/ && \
|
||||
echo "**** split after 3rd dot if it exists in minetest tag variable ****" && \
|
||||
echo "**** so we fetch game version x.x.x etc ****" && \
|
||||
if \
|
||||
[ $(echo "$MINETEST_TAG" | tr -cd '.' | wc -c) = 3 ] ; \
|
||||
then MINETEST_TAG=${MINETEST_TAG%.*}; \
|
||||
fi && \
|
||||
echo "**** fetch additional game ****" && \
|
||||
mkdir -p \
|
||||
/defaults/games/minetest && \
|
||||
curl -o \
|
||||
/tmp/minetest-game.tar.gz -L \
|
||||
"https://github.com/minetest/minetest_game/archive/${MINETEST_TAG%.*}.tar.gz" && \
|
||||
"https://github.com/minetest/minetest_game/archive/${MINETEST_TAG}.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/minetest-game.tar.gz -C \
|
||||
/defaults/games/minetest --strip-components=1 && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user