Skip to content

Commit be2f337

Browse files
authored
refactor: use release zimdump
1 parent ad3b6e8 commit be2f337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mirrorzim.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fi
8484

8585
printf "\nEnsure zimdump is present...\n"
8686
PATH=$PATH:$(realpath ./bin)
87-
which zimdump &> /dev/null || (curl --progress-bar -L https://ipfs.io/ipfs/bafybeibotxexiycu4luq7b6d6sh3oi2t2cvpvbimms6rpmbalbbyfrddyq -o ./bin/zimdump && chmod +x ./bin/zimdump)
87+
which zimdump &> /dev/null || (curl --progress-bar -L https://download.openzim.org/release/zim-tools/zim-tools_linux-x86_64-3.0.0.tar.gz | tar -xvz --strip-components=1 -C ./bin zim-tools_linux-x86_64-3.0.0/zimdump && chmod +x ./bin/zimdump)
8888

8989
printf "\nDownload and verify the zim file...\n"
9090
ZIM_FILE_SOURCE_URL="$(./tools/getzim.sh download $WIKI_TYPE $WIKI_TYPE $LANGUAGE_CODE all maxi latest | grep 'URL:' | cut -d' ' -f3)"

0 commit comments

Comments
 (0)