diff --git a/installers/raspberry.sh b/installers/raspberry.sh index 718f78b6..2df89a5f 100644 --- a/installers/raspberry.sh +++ b/installers/raspberry.sh @@ -21,10 +21,10 @@ echo -e "\e[0m" # Define the tested version of Node.js. NODE_TESTED="v5.1.0" -#Determine which Pi is running. +# Determine which Pi is running. ARM=$(uname -m) -#Check the Raspberry Pi version. +# Check the Raspberry Pi version. if [ "$ARM" != "armv7l" ]; then echo -e "\e[91mSorry, your Raspberry Pi is not supported." echo -e "\e[91mPlease run MagicMirror on a Raspberry Pi 2 or 3." @@ -32,7 +32,7 @@ if [ "$ARM" != "armv7l" ]; then exit; fi -#define helper methods. +# Define helper methods. function version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; } function command_exists () { type "$1" &> /dev/null ;} @@ -56,8 +56,8 @@ if command_exists node; then echo -e "\e[96mNode should be upgraded.\e[0m" NODE_INSTALL=true - #Check if a node process is currenlty running. - #If so abort installation. + # Check if a node process is currenlty running. + # If so abort installation. if pgrep "node" > /dev/null; then echo -e "\e[91mA Node process is currently running. Can't upgrade." echo "Please quit all Node processes and restart the installer." @@ -78,9 +78,9 @@ if $NODE_INSTALL; then echo -e "\e[96mInstalling Node.js ...\e[90m" - #Fetch the latest version of Node.js from the selected branch - #The NODE_STABLE_BRANCH variable will need to be manually adjusted when a new branch is released. (e.g. 7.x) - #Only tested (stable) versions are recommended as newer versions could break MagicMirror. + # Fetch the latest version of Node.js from the selected branch + # The NODE_STABLE_BRANCH variable will need to be manually adjusted when a new branch is released. (e.g. 7.x) + # Only tested (stable) versions are recommended as newer versions could break MagicMirror. NODE_STABLE_BRANCH="6.x" curl -sL https://deb.nodesource.com/setup_$NODE_STABLE_BRANCH | sudo -E bash - @@ -88,7 +88,7 @@ if $NODE_INSTALL; then echo -e "\e[92mNode.js installation Done!\e[0m" fi -#Install magic mirror +# Install MagicMirror cd ~ if [ -d "$HOME/MagicMirror" ] ; then echo -e "\e[93mIt seems like MagicMirror is already installed."