~mapperr/trl

ref: 2f3f73d4837184bb473695b6fb7e11f86554f404 trl/trl -rwxr-xr-x 567 bytes
2f3f73d4 — mapperr Open selected board in browser 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 $@