@@ -21,18 +21,18 @@ echo -e "\e[0m"
21
21
# Define the tested version of Node.js.
22
22
NODE_TESTED=" v5.1.0"
23
23
24
- # Determine which Pi is running.
24
+ # Determine which Pi is running.
25
25
ARM=$( uname -m)
26
26
27
- # Check the Raspberry Pi version.
27
+ # Check the Raspberry Pi version.
28
28
if [ " $ARM " != " armv7l" ]; then
29
29
echo -e " \e[91mSorry, your Raspberry Pi is not supported."
30
30
echo -e " \e[91mPlease run MagicMirror on a Raspberry Pi 2 or 3."
31
31
echo -e " \e[91mIf this is a Pi Zero, you are in the same boat as the original Raspberry Pi. You must run in server only mode."
32
32
exit ;
33
33
fi
34
34
35
- # define helper methods.
35
+ # Define helper methods.
36
36
function version_gt() { test " $( echo " $@ " | tr " " " \n" | sort -V | head -n 1) " ! = " $1 " ; }
37
37
function command_exists () { type " $1 " & > /dev/null ; }
38
38
@@ -56,8 +56,8 @@ if command_exists node; then
56
56
echo -e " \e[96mNode should be upgraded.\e[0m"
57
57
NODE_INSTALL=true
58
58
59
- # Check if a node process is currenlty running.
60
- # If so abort installation.
59
+ # Check if a node process is currenlty running.
60
+ # If so abort installation.
61
61
if pgrep " node" > /dev/null; then
62
62
echo -e " \e[91mA Node process is currently running. Can't upgrade."
63
63
echo " Please quit all Node processes and restart the installer."
@@ -78,17 +78,17 @@ if $NODE_INSTALL; then
78
78
79
79
echo -e " \e[96mInstalling Node.js ...\e[90m"
80
80
81
- # Fetch the latest version of Node.js from the selected branch
82
- # The NODE_STABLE_BRANCH variable will need to be manually adjusted when a new branch is released. (e.g. 7.x)
83
- # Only tested (stable) versions are recommended as newer versions could break MagicMirror.
81
+ # Fetch the latest version of Node.js from the selected branch
82
+ # The NODE_STABLE_BRANCH variable will need to be manually adjusted when a new branch is released. (e.g. 7.x)
83
+ # Only tested (stable) versions are recommended as newer versions could break MagicMirror.
84
84
85
85
NODE_STABLE_BRANCH=" 6.x"
86
86
curl -sL https://deb.nodesource.com/setup_$NODE_STABLE_BRANCH | sudo -E bash -
87
87
sudo apt-get install -y nodejs
88
88
echo -e " \e[92mNode.js installation Done!\e[0m"
89
89
fi
90
90
91
- # Install magic mirror
91
+ # Install MagicMirror
92
92
cd ~
93
93
if [ -d " $HOME /MagicMirror" ] ; then
94
94
echo -e " \e[93mIt seems like MagicMirror is already installed."
0 commit comments