by dantheman · 11y ago · 0 comments
curl * | bash
and should be discouraged. It's easy but it's like saying, hey I'm logged in as root all the time - it's easier. #!env bash
f () {
...code
...code
...code
}
f
Hence a partial stream will do nothing (syntax error, missing brace to be precise).rm -rf ~/.config/google
and the connection gives out at
rm -rf ~/
Suddenly your script didn't install, and you've blown away your home directory. HTTP(S) is designed for reading documents, where it's OK if you can't read the document in its entirety.
wget https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash
chmod 775 install_google_cloud_sdk.bash
./install_google_cloud_sdk.bashOtherwise you might as well give up on downloading any software from the internet. Ever.
That is if you don't do a
view ./configure
first and go through it. You do take a look at the configure scripts, don't you?Example: expat's autoconf script is over twenty two thousand lines long.