home-assistant-custom-ui/sync-hass.zsh

10 lines
260 B
Bash

#!/bin/zsh
# vim: set sw=4 ts=4 sts=4 et :
inotifywait -m -e close_write . \
| while read _ _ name; do
[[ ${name} = *.js ]] || continue
printf 'put %s\n' "${name}"
done \
| sftp homeassistant@hass2.pyrocufflink.blue:www/resources/