Created
July 16, 2018 20:56
-
-
Save DanyelMorales/7f45ec1c7c26f5b8822211f99e7e1996 to your computer and use it in GitHub Desktop.
Observe a file and then execute a command
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
#!/usr/bin/env bash | |
# usage: hook.sh ./**/*.ext "echo 'hello world when this file changes'" | |
inotify-hookable -f $1 -c "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment