Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Implement unified interface to install scripts #11

Merged
merged 9 commits into from
Feb 8, 2017
Prev Previous commit
Next Next commit
Fixup tabs
Correct /bin/sh stanza which precludes the "function" keyword
Restore old functionality if installer is run standalone.
  • Loading branch information
kxtcd950 committed Feb 7, 2017
commit d16bbf83db5a3505b94b15a0975a7d1824731b1e
9 changes: 5 additions & 4 deletions install_homeassistant.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh
#!/bin/bash
function homeassistant-show-short-info {
echo "Home Assistant install script for Hassbian"
echo "Home Assistant install script for Hassbian"
}

function homeassistant-show-long-info {
echo "Installs the libcec package for controlling CEC devices from this Pi"
echo "Installs the libcec package for controlling CEC devices from this Pi"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the libcec package.

}

function homeassistant-show-copyright-info {
Expand Down Expand Up @@ -66,4 +66,5 @@ echo "If you still have issues with this script, please contact @Landrash on git
echo
}

[[ $_ == $0 ]] && echo "hassbian-config helper script; do not run directly, use hassbian-config install instead"
# Make this script function as it always has if run standalone, rather than issue a warning and do nothing.
[[ $_ == $0 ]] && homeassistant-install-package