Skip to content

Commit

Permalink
replicate hass-aarlo install code
Browse files Browse the repository at this point in the history
  • Loading branch information
twrecked committed Jul 18, 2019
1 parent 5ba01b0 commit da57cfa
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions install
@@ -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"

0 comments on commit da57cfa

Please sign in to comment.