Skip to content

Instantly share code, notes, and snippets.

@abernier
Last active September 20, 2019 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abernier/a19c2cff04c93642dd623beba6f5543d to your computer and use it in GitHub Desktop.
Save abernier/a19c2cff04c93642dd623beba6f5543d to your computer and use it in GitHub Desktop.
πŸ‘¨πŸ»β€βš•οΈ irondoctor.sh

irondoctor

πŸ‘¨πŸ»β€βš•οΈ will examine your environment and check if you are ready to start the bootcamp!

INSTALL

curl -s -o- https://gist.githubusercontent.com/abernier/a19c2cff04c93642dd623beba6f5543d/raw/irondoctor.sh | bash

or

wget -qO- https://gist.githubusercontent.com/abernier/a19c2cff04c93642dd623beba6f5543d/raw/irondoctor.sh | bash

Fix errors

In case of any ❌, please refer to:

from instructions from Ironhack Prework/Environment Setup.

#!/bin/bash
cmds=(
'git --version'
'code --version'
'source $NVM_DIR/nvm.sh && nvm --version'
'node --version'
'mongod --version'
)
for cmd in "${cmds[@]}"; do
STDERR=`eval $cmd 2>&1 >/dev/null`
if [ -z "$STDERR" ]; then
echo "βœ… \`$cmd\`"
else
echo "❌ \`$cmd\`: $STDERR"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment