Skip to content

Instantly share code, notes, and snippets.

@zyrx
Forked from jkeyes/gist:1242040
Created November 21, 2013 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zyrx/7586242 to your computer and use it in GitHub Desktop.
Save zyrx/7586242 to your computer and use it in GitHub Desktop.
#!/bin/bash
watchmedo shell-command --patterns="*.less" --command=\
'LESS=`echo "${watch_src_path}" | sed s/.less/.css/`; \
echo compile: "${watch_src_path}";\
lessc "${watch_src_path}" "${LESS}"; \
if [ "$?" -eq "0" ]; then echo wrote: "${LESS}"; fi' $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment