Sha256: 365dedbcc673aec5b7ea020f5fd18007f513d0b5bc51e44c99c87c26ee58d62b
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 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 Heatmon cd $PROJECT_ROOT && bundle exec ruby elch_scan.rb "$@"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elch_scan-0.1.1 | bin/elch_scan |
elch_scan-0.1.0 | bin/elch_scan |