Created
December 4, 2022 13:58
-
-
Save idrisr/19483f3f0cb88b6723bfc5ae8d496a55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
NAME=${1:l} | |
pushd "$1" | |
pwd | |
setopt extendedglob | |
zip -X -0 "${NAME}" mimetype | |
zip -r -9 "${NAME}" *(/) (^mimetype)* | |
mv "${NAME}" ../ | |
pwd | |
setopt noextendedglob | |
popd "$1" | |
pwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make an epub from a directory that is unzipped and used to be an epub.