Last active
January 21, 2018 19:10
-
-
Save erichs/9cb8986fcd2bd4c11217 to your computer and use it in GitHub Desktop.
Improved Shell script with binary data
This file contains 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 | |
{ | |
cd /path/to/unzip || exit | |
while read line; do | |
case $line in | |
"exit 0") break;; | |
esac | |
done | |
tar zxf - | |
} < "$0" | |
exit 0 | |
<...binary data here...> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment