Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mirrorzim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ TMP_DIRECTORY="./tmp/$(echo $ZIM_FILE | cut -d'.' -f1)"
# We use it as a hint if tmpdir should be purged or not

printf "\nRemove any partial tmp directory $TMP_DIRECTORY before run ..."
test -e $TMP_DIRECTORY/zimdump_version || rm -rf $TMP_DIRECTORY
# so.. turns out rsync is the fastest: https://www.slashroot.in/which-is-the-fastest-method-to-delete-files-in-linux
test -e $TMP_DIRECTORY/zimdump_version || (mkdir -p ./tmp/blank && rsync -a --delete ./tmp/blank/ $TMP_DIRECTORY ; rm -rf $TMP_DIRECTORY ./tmp/blank)

printf "\nUnpack the zim file into $TMP_DIRECTORY if not there already...\n"
test -e $TMP_DIRECTORY/zimdump_version || (zimdump dump ./snapshots/$ZIM_FILE --dir $TMP_DIRECTORY && zimdump --version > $TMP_DIRECTORY/zimdump_version)
Expand Down
2 changes: 1 addition & 1 deletion src/templates/footer_fragment.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
a global effort, independent from Wikipedia.
</div>
<div>
Created on {{SNAPSHOT_DATE}} from the kiwix ZIM file:
Created on {{SNAPSHOT_DATE}} from the <a class="external text" href="https://kiwix.org">Kiwix</a> ZIM file:
<a href="{{ZIM_URL}}">{{ZIM_NAME}}</a>
</div>
<div id="footer-ipns-link">
Expand Down