Created
July 15, 2016 12:45
-
-
Save ceremcem/2aac317e77505f47be0c683d7aa48c60 to your computer and use it in GitHub Desktop.
Zip target folder with the same name
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
#!/bin/bash | |
FOLDER=$1 | |
zip -r "${FOLDER%/}.zip" "${FOLDER%/}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment