Skip to content

Commit 03f15e0

Browse files
authored
Merge pull request MagicMirrorOrg#747 from roramirez/comment-bash-installer
Fix format comments on installer script
2 parents 043779f + db444f5 commit 03f15e0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: installers/raspberry.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@ echo -e "\e[0m"
2121
# Define the tested version of Node.js.
2222
NODE_TESTED="v5.1.0"
2323

24-
#Determine which Pi is running.
24+
# Determine which Pi is running.
2525
ARM=$(uname -m)
2626

27-
#Check the Raspberry Pi version.
27+
# Check the Raspberry Pi version.
2828
if [ "$ARM" != "armv7l" ]; then
2929
echo -e "\e[91mSorry, your Raspberry Pi is not supported."
3030
echo -e "\e[91mPlease run MagicMirror on a Raspberry Pi 2 or 3."
3131
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."
3232
exit;
3333
fi
3434

35-
#define helper methods.
35+
# Define helper methods.
3636
function version_gt() { test "$(echo "$@" | tr " " "\n" | sort -V | head -n 1)" != "$1"; }
3737
function command_exists () { type "$1" &> /dev/null ;}
3838

@@ -56,8 +56,8 @@ if command_exists node; then
5656
echo -e "\e[96mNode should be upgraded.\e[0m"
5757
NODE_INSTALL=true
5858

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.
6161
if pgrep "node" > /dev/null; then
6262
echo -e "\e[91mA Node process is currently running. Can't upgrade."
6363
echo "Please quit all Node processes and restart the installer."
@@ -78,17 +78,17 @@ if $NODE_INSTALL; then
7878

7979
echo -e "\e[96mInstalling Node.js ...\e[90m"
8080

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.
8484

8585
NODE_STABLE_BRANCH="6.x"
8686
curl -sL https://deb.nodesource.com/setup_$NODE_STABLE_BRANCH | sudo -E bash -
8787
sudo apt-get install -y nodejs
8888
echo -e "\e[92mNode.js installation Done!\e[0m"
8989
fi
9090

91-
#Install magic mirror
91+
# Install MagicMirror
9292
cd ~
9393
if [ -d "$HOME/MagicMirror" ] ; then
9494
echo -e "\e[93mIt seems like MagicMirror is already installed."

0 commit comments

Comments
 (0)