Skip to content

Commit

Permalink
chore: remove duplicate copy
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
lidel committed Feb 12, 2021
1 parent 93dc652 commit bd36ac3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions mirrorzim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ node ./bin/run $TMP_DIRECTORY \
${HOSTING_IPNS_HASH:+--hostingipnshash=$HOSTING_IPNS_HASH} \
${MAIN_PAGE_VERSION:+--mainpageversion=$MAIN_PAGE_VERSION}

printf "\nAdding original ZIM to the root dir:\n"
cp -v ./snapshots/$ZIM_FILE $TMP_DIRECTORY

printf "\nAdding the processed tmp directory to IPFS: be patient (it takes a few hours), and keep this terminal open\n"
CID=$(ipfs add -r --cid-version 1 --pin=false --offline -Qp $TMP_DIRECTORY)
MFS_DIR="/${ZIM_FILE}_$(date +%F_%T)"
Expand Down
2 changes: 1 addition & 1 deletion src/site-transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const includeSourceZim = ({
return
}

cli.action.start(' Copying source ZIM to the root of unpacked version ')
cli.action.start(' Copying source ZIM to the root of unpacked zim directory ')
copyFileSync(zimFile, zimCopy)
cli.action.stop()
}
Expand Down

0 comments on commit bd36ac3

Please sign in to comment.