Skip to content

Instantly share code, notes, and snippets.

@erichs
Created August 19, 2014 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erichs/01bb10aa16a80171358d to your computer and use it in GitHub Desktop.
Save erichs/01bb10aa16a80171358d to your computer and use it in GitHub Desktop.
Shell script with inline binary data
#!/bin/bash
sudo do_whatnot_first
tail -n +8 $0 | tar -zxf - -C /tmp
cd /tmp/my_extracted_tarfile_location
./configure && make && sudo make install
exit 0
#//EOF
$ cat myprog.tar.gz >> binary.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment