Skip to content

Instantly share code, notes, and snippets.

@srih4ri
Created November 5, 2012 16:10
Show Gist options
  • Save srih4ri/4018024 to your computer and use it in GitHub Desktop.
Save srih4ri/4018024 to your computer and use it in GitHub Desktop.
Script to copy fedena plugin's assets to public dir on file change ( Using inotify-tools )

Copy the following into a shell script in fedena's root folder, give it executable permissions and run as :

./update_plugin_assets.sh vendor/plugins/my_awesome_plugin
#!/bin/sh
plugin_dir=$1
while inotifywait -r -e modify $plugin_dir ; do
    rsync --exclude=.svn -ruv $plugin_dir/public/ public
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment