From e14e06d3cd8e3f15d34f619caef51da6d5a13110 Mon Sep 17 00:00:00 2001 From: sorawee Date: Wed, 11 Oct 2023 21:03:13 +0700 Subject: [PATCH] fix: make run-picus locate the Racket file correctly (#57) --- run-picus | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run-picus b/run-picus index 61738b6..39be345 100755 --- a/run-picus +++ b/run-picus @@ -1,3 +1,5 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash -PLTSTDERR="error none@picus" racket ./picus.rkt "$@" +# from https://stackoverflow.com/a/24112741/718349 +parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) +PLTSTDERR="error none@picus" racket $parent_path/picus.rkt "$@"