Sha256: 4fc01717c7503c902879d09d47f09b7911706f291823c4d6fa9cbe36bee0c449

Contents?: true

Size: 644 Bytes

Versions: 9

Compression:

Stored size: 644 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/dle "$@"

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dle-1.0.1 bin/dle.sh
dle-0.1.7 bin/dle.sh
dle-0.1.6 bin/dle.sh
dle-0.1.5 bin/dle.sh
dle-0.1.4 bin/dle.sh
dle-0.1.3 bin/dle.sh
dle-0.1.2 bin/dle.sh
dle-0.1.1 bin/dle.sh
dle-0.1.0 bin/dle.sh