Skip to content

Instantly share code, notes, and snippets.

@progrium
Last active August 29, 2015 14:14
Show Gist options
  • Save progrium/219576c6a33cc0757292 to your computer and use it in GitHub Desktop.
Save progrium/219576c6a33cc0757292 to your computer and use it in GitHub Desktop.
#!/bin/sh
tail -n +6 $0 | tar -zx "$(uname -sm)"
mv "$(uname -sm)" $0
exec $0 $@
exit
( gzip data with different binaries named after output of uname -sm )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment