jekyll: Use an idiomatic way to get script directory

See elsewhere in the repo and <https://stackoverflow.com/a/246128/96588>.
This commit is contained in:
Victor Engmark 2024-06-26 18:12:54 +02:00
parent 235bacee2e
commit 27312ae230
No known key found for this signature in database

View File

@ -3,7 +3,7 @@
set -o errexit -o nounset
BASEDIR="$(dirname "$(readlink -f $0)")"
BASEDIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
for directory in "basic" "full"; do
pushd "$BASEDIR/$directory"