~mapperr/trl

ref: 91cf77cf63bbe0cac7933d927aa3f9354172b259 trl/trl -rwxr-xr-x 567 bytes
91cf77cf — mapperr Fix docs 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

# https://stackoverflow.com/a/246128/1407614
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
  DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"

cd $SCRIPT_DIR >/dev/null
pipenv run python trullo.py $@