Sha256: e52648038c468a2426518f24bf4288377104d5aca17147a902bab3f37dcdb0fb

Contents?: true

Size: 267 Bytes

Versions: 8

Compression:

Stored size: 267 Bytes

Contents

#!/bin/bash
DIRECTORY_TO_OBSERVE=`pwd`
echo 'watching' $DIRECTORY_TO_OBSERVE
function block_for_change {
  inotifywait -r \
    -e modify,move,create,delete \
    $DIRECTORY_TO_OBSERVE
}

echo 'running' $1
$1

while block_for_change; do
  echo 'running' $1
  $1
done

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
finishm-0.0.9 spec/watch_for_changes.sh
finishm-0.0.8 spec/watch_for_changes.sh
finishm-0.0.7 spec/watch_for_changes.sh
finishm-0.0.6 spec/watch_for_changes.sh
finishm-0.0.5 spec/watch_for_changes.sh
finishm-0.0.4 spec/watch_for_changes.sh
finishm-0.0.2 spec/watch_for_changes.sh
finishm-0.0.1 spec/watch_for_changes.sh