Created
May 28, 2012 21:36
-
-
Save cjhanks/2821302 to your computer and use it in GitHub Desktop.
Unpacker
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
function unload | |
{ | |
match=$(grep --text --line-number '^PAYLOAD:$' $0 | cut -d ':' -f 1) | |
pay_start=$((match + 1)) | |
tail -n +$pay_start $0 | tar -xzvf - | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment