Use 2-space indentation for consistency

master
José Padilla 2014-03-12 14:33:00 -04:00
parent 25ca41c9dc
commit b90a0a811e
1 changed files with 6 additions and 6 deletions

View File

@ -1,16 +1,16 @@
#!/bin/bash #!/bin/bash
function fatalExit (){ function fatalExit (){
echo "$@" && exit 1; echo "$@" && exit 1;
} }
# an alternative URL that could be used: https://github.com/creationix/nvm/tarball/master # an alternative URL that could be used: https://github.com/creationix/nvm/tarball/master
if [ "$NVM_SOURCE" = "" ]; then if [ "$NVM_SOURCE" = "" ]; then
NVM_SOURCE="https://raw.github.com/creationix/nvm/master/nvm.sh" NVM_SOURCE="https://raw.github.com/creationix/nvm/master/nvm.sh"
fi fi
if [ "$NVM_DIR" = "" ]; then if [ "$NVM_DIR" = "" ]; then
NVM_DIR="$HOME/.nvm" NVM_DIR="$HOME/.nvm"
fi fi
# Downloading to $NVM_DIR # Downloading to $NVM_DIR
@ -20,11 +20,11 @@ echo -ne "=> Downloading... "
# Detect if curl or wget is installed to download NVM_SOURCE # Detect if curl or wget is installed to download NVM_SOURCE
if type curl > /dev/null 2>&1; then if type curl > /dev/null 2>&1; then
curl --silent "$NVM_SOURCE" -o nvm.sh || fatalExit "Failed"; curl --silent "$NVM_SOURCE" -o nvm.sh || fatalExit "Failed";
elif type wget > /dev/null 2>&1; then elif type wget > /dev/null 2>&1; then
wget --quiet "$NVM_SOURCE" -O nvm.sh || fatalExit "Failed"; wget --quiet "$NVM_SOURCE" -O nvm.sh || fatalExit "Failed";
else else
fatalExit "Must have curl or wget to install nvm"; fatalExit "Must have curl or wget to install nvm";
fi fi
echo "Downloaded" echo "Downloaded"