Last active
October 3, 2016 00:56
-
-
Save ChristopherA/97aed846fcf78ded79fc7577f73f6384 to your computer and use it in GitHub Desktop.
alternatives to curl | bash -> curl to editor to bash
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
| file=$(mktemp); curl -s "$url" > $file; $EDITOR $file; sh $file; rm $file | |
| curl $URL | ( cat > $HOME/tmp/source; read REPLY; [[ ! $REPLY =~ ^[Yy]$ ]] && cat $HOME/tmp/source ) | sh ; rm $HOME/tmp/source | |
| #need some cross platform way to hashpipe check. | |
| if [[ `uname` == 'Darwin' ]]; then | |
| alias sha256sum='openssl dgst -sha256' | |
| fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment