-
-
Save morgan9e/f36fb7a4b1be06897de478ecca41239b to your computer and use it in GitHub Desktop.
Not unzip dumping all files to cwd
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 | |
| if [ ! -f $1 ]; then echo No file provided.; exit 1; fi | |
| F=${1%.*}; | |
| if [ -d "$F" ]; then echo Already Exists.; exit; fi | |
| mkdir "$F"; | |
| unzip -d "$F" "$1"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment