Sha256: f9941cd4e503a97f9a707b80ec295b2ccbe645583b9313550042d5ccf5765402

Contents?: true

Size: 649 Bytes

Versions: 1

Compression:

Stored size: 649 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 elch_scan.rb "$@"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elch_scan-0.1.2 bin/elch_scan.sh