Skip to content

Commit

Permalink
refactor: use release zimdump
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel authored Nov 15, 2021
1 parent ad3b6e8 commit be2f337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirrorzim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fi

printf "\nEnsure zimdump is present...\n"
PATH=$PATH:$(realpath ./bin)
which zimdump &> /dev/null || (curl --progress-bar -L https://ipfs.io/ipfs/bafybeibotxexiycu4luq7b6d6sh3oi2t2cvpvbimms6rpmbalbbyfrddyq -o ./bin/zimdump && chmod +x ./bin/zimdump)
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)

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

0 comments on commit be2f337

Please sign in to comment.