Allow symlinked dfhack-run

This is useful for symlinking this script somewhere on your $PATH, and
having it work without having to find the correct directory.
develop
Kelvie Wong 2023-01-13 21:02:33 -08:00
parent 39f7930587
commit e7696b1f03
1 changed files with 1 additions and 1 deletions

@ -1,6 +1,6 @@
#!/bin/sh
DF_DIR=$(dirname "$0")
DF_DIR=$(dirname "$(readlink -f "$0")")
cd "${DF_DIR}"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"./hack/libs":"./hack"