Moved user input to the top of the scripts.#109
Conversation
Landrash
left a comment
There was a problem hiding this comment.
Some spelling and formatting will need to be looked at but looks good in general.
|
|
||
| if [ "$ACCEPT" != "true" ]; then | ||
| if [ -f "/usr/sbin/samba" ]; then | ||
| echo -n "Do you want to add samba share for AppDaemon configuration? [N/y] : " |
| 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.
Formatting white space missing here and two line more.
There was a problem hiding this comment.
It's a "TAB" that's missing before the echo
There was a problem hiding this comment.
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.
Appdaemon with Capital A?
| 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.
Isn't git and make both installed in the base image?
|
|
||
| if [ "$ACCEPT" != "true" ]; then | ||
| if [ -f "/usr/sbin/samba" ]; then | ||
| echo -n "Do you want to add samba share for Homebridge configuration? [N/y] : " |
| 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.
Capital H for Homebridge, captial for Home Assistant and spelling for Home Assistant.
| fi | ||
| fi | ||
| if [ "$SAMBA" == "y" ] || [ "$SAMBA" == "Y" ]; then | ||
| echo "Adding configuration to samba..." |
| 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.
Formatting white space missing.
|
Found some more spelling errors :) |
| echo | ||
| echo "You will find the appdaemon configuration files in:" | ||
| echo "You will find the AppDaemon configuration files in:" | ||
| echo "/home/homeassistant/appdaemon" |
| echo | ||
| echo "You will find the appdaemon configuration files in:" | ||
| echo "You will find the AppDaemon configuration files in:" | ||
| echo "/home/homeassistant/appdaemon" |
Landrash
left a comment
There was a problem hiding this comment.
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