1
0
mirror of https://github.com/RyanGreenup/cadmus.git synced 2025-04-06 19:12:26 +02:00

[FIX] Now finds Real Directory, following symlink

This commit is contained in:
Ryan Greenup 2020-07-17 01:51:55 +10:00
parent a59297d629
commit 1747f6f9ae

View File

@ -23,7 +23,8 @@ function setvars() {
IFS=$'\t\n' # Split on newlines and tabs (but not on spaces)
readonly script_name=$(basename "${0}")
readonly script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
readonly script_dir=$(realpath "${script_dir}""/""${script_name}" | xargs dirname)
readonly TERMINAL="kitty"
readonly TERMINAL_EXEC='kitty -- '
}