Sha256: ae655228a07e812a9b13f71f7d8934e73b638c20d89100ee1f981376549be5ce

Contents?: true

Size: 652 Bytes

Versions: 17

Compression:

Stored size: 652 Bytes

Contents

#!/bin/bash

# That's __FILE__ in BASH :)
# From: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
  MCLDIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$MCLDIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
PROJECT_ROOT="$( cd -P "$( dirname "$SOURCE" )"/.. && pwd )"

# Actually run script
cd $PROJECT_ROOT && bundle exec ruby bin/watchmonkey "$@"

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
watchmonkey_cli-1.12.0 bin/watchmonkey.sh
watchmonkey_cli-1.11.0 bin/watchmonkey.sh
watchmonkey_cli-1.10.0 bin/watchmonkey.sh
watchmonkey_cli-1.9.1 bin/watchmonkey.sh
watchmonkey_cli-1.9.0 bin/watchmonkey.sh
watchmonkey_cli-1.8.6 bin/watchmonkey.sh
watchmonkey_cli-1.8.5 bin/watchmonkey.sh
watchmonkey_cli-1.8.4 bin/watchmonkey.sh
watchmonkey_cli-1.8.3 bin/watchmonkey.sh
watchmonkey_cli-1.8.2 bin/watchmonkey.sh
watchmonkey_cli-1.8.1 bin/watchmonkey.sh
watchmonkey_cli-1.8 bin/watchmonkey.sh
watchmonkey_cli-1.7.1 bin/watchmonkey.sh
watchmonkey_cli-1.7 bin/watchmonkey.sh
watchmonkey_cli-1.6 bin/watchmonkey.sh
watchmonkey_cli-1.5 bin/watchmonkey.sh
watchmonkey_cli-1.4 bin/watchmonkey.sh