-
-
Notifications
You must be signed in to change notification settings - Fork 97
Moved user input to the top of the scripts. #109
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some spelling and formatting will need to be looked at but looks good in general.
@@ -15,6 +15,13 @@ function appdaemon-install-package { | |||
appdaemon-show-short-info | |||
appdaemon-show-copyright-info | |||
|
|||
if [ "$ACCEPT" != "true" ]; then | |||
if [ -f "/usr/sbin/samba" ]; then | |||
echo -n "Do you want to add samba share for AppDaemon configuration? [N/y] : " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Samba with capital S
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
echo | ||
echo -e "\e[32mInstallation done..\e[0m" | ||
echo | ||
echo "You will find the appdaemon configuration files in:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting white space missing here and two line more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a "TAB" that's missing before the echo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I see that is missing, not sure how that happened :)
echo | ||
echo -e "\e[32mInstallation done..\e[0m" | ||
echo | ||
echo "You will find the appdaemon configuration files in:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appdaemon with Capital A?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capital D to :)
echo "Preparing system, and adding dependencies..." | ||
sudo apt update | ||
sudo apt -y upgrade | ||
sudo apt install -y make git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't git
and make
both installed in the base image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They sure are :)
echo "" | ||
echo "" | ||
echo -n "Enter your Home Assistant API password: " | ||
read -s HOMEASSISTANT_PASSWORD | ||
echo | ||
fi | ||
|
||
if [ "$ACCEPT" != "true" ]; then | ||
if [ -f "/usr/sbin/samba" ]; then | ||
echo -n "Do you want to add samba share for Homebridge configuration? [N/y] : " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capital S for Samba.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
sudo apt install -y nodejs | ||
sudo apt install -y libavahi-compat-libdnssd-dev | ||
|
||
echo "Installing homebridge for homeassistant..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capital H for Homebridge, captial for Home Assistant and spelling for Home Assistant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
fi | ||
fi | ||
if [ "$SAMBA" == "y" ] || [ "$SAMBA" == "Y" ]; then | ||
echo "Adding configuration to samba..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capital S in Samba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
echo | ||
echo "If you have issues with this script, please say something in the #devs_hassbian channel on Discord." | ||
echo | ||
echo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting white space missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Found some more spelling errors :) |
@@ -80,7 +80,7 @@ if [ "$validation" != "0" ]; then | |||
echo | |||
echo -e "\e[32mInstallation done..\e[0m" | |||
echo | |||
echo "You will find the appdaemon configuration files in:" | |||
echo "You will find the AppDaemon configuration files in:" | |||
echo "/home/homeassistant/appdaemon" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing white space.
@@ -80,7 +80,7 @@ if [ "$validation" != "0" ]; then | |||
echo | |||
echo -e "\e[32mInstallation done..\e[0m" | |||
echo | |||
echo "You will find the appdaemon configuration files in:" | |||
echo "You will find the AppDaemon configuration files in:" | |||
echo "/home/homeassistant/appdaemon" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing white space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Great work as usual 🍰
Description:
Cosmetic change, so the user can go get a cup of coffee/tea while the script run, and not worry about it hanging waiting for input.
"If you have issues with this script, please say something in the #devs_hassbian channel on Discord."
This line will still print if the validation fail.
Related issue (if applicable): Fixes #108
Checklist:
If pertinent:
/docs