Last active
August 29, 2015 14:23
-
-
Save mattintosh4/a2ac97711bf4c5065d03 to your computer and use it in GitHub Desktop.
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/sh | |
set -e | |
case ${SHELL} in | |
*bash) | |
BASH=${SHELL} | |
;; | |
*) | |
BASH=`PATH=/usr/bin:/bin; which bash` | |
;; | |
esac | |
${BASH} --version |
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
$ bash <(curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh') | |
$ bash <(wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh') |
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
$ sh /dev/fd/0 <<! | |
`curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh'` | |
! | |
$ sh /dev/fd/0 <<! | |
`wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh'` | |
! | |
$ sh /dev/stdin <<! | |
`curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh'` | |
! | |
$ sh /dev/stdin <<! | |
`wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh'` | |
! |
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
$ curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh' | bash /dev/fd/0 | |
$ wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh' | bash /dev/fd/0 | |
$ curl -sL 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh' | bash /dev/stdin | |
$ wget -qo- 'https://gist.github.com/mattintosh4/a2ac97711bf4c5065d03/raw/gistfile1.sh' | bash /dev/stdin |
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
GNU bash, version 4.3.39(1)-release (armv7l-unknown-linux-gnueabihf) | |
Copyright (C) 2013 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software; you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. |
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
$ bash <(xclip -out -sel clip) |
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
$ bash <(curl -sL "`xclip -out -sel clip`") | |
$ bash <(wget -qo- "`xclip -out -sel clip`") |
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
$ git clone https://gist.github.com/a2ac97711bf4c5065d03.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment