Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# | ||
|
||
if [[ "${1}" == "go" ]]; then | ||
ECHO= | ||
shift | ||
else | ||
ECHO=echo | ||
fi | ||
|
||
DEST="${1}" | ||
if [[ -z "${DEST}" ]]; then | ||
echo "*** please supply the home-assistant /config directory" | ||
exit 1 | ||
fi | ||
if [[ ! -d "${DEST}" ]]; then | ||
echo "*** please make sure the destination directory exists" | ||
exit 1 | ||
fi | ||
|
||
if [[ -n "${ECHO}" ]]; then | ||
echo "**** would run the following commands, use './install go $1' to do the work" | ||
fi | ||
|
||
${ECHO} mkdir -p "${DEST}/www" | ||
${ECHO} cp -afv dist/hass-aarlo.js "${DEST}/www/aarlo-glance.js" | ||
|