From 8f331dff5a375ffa8b6b19652877fd6528981c23 Mon Sep 17 00:00:00 2001 From: Eric Conlon <37287+ejconlon@users.noreply.github.com> Date: Sun, 22 Sep 2024 09:13:12 -0700 Subject: [PATCH] bin --- bin/minipat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/minipat b/bin/minipat index 2bcf150..b6cab62 100755 --- a/bin/minipat +++ b/bin/minipat @@ -1,8 +1,6 @@ #!/bin/bash -set -e - -cd "$(dirname "$0")/.." +set -eu DEFAULT_BACKEND="midi" USE_STRING="minipat [BACKEND [SCRIPT]]" @@ -39,6 +37,8 @@ fi # Ensure absolute path for GHCi script SCRIPT="$(realpath "${SCRIPT}")" +cd "$(dirname "$0")/.." + set -x exec stack ghci --ghci-options "-ghci-script=\"${SCRIPT}\"" "minipat-${BACKEND}"