From f6a334f440c6cf093c81787141a7a500cda0f837 Mon Sep 17 00:00:00 2001 From: Tomasz Pluskiewicz Date: Mon, 16 Sep 2024 12:34:02 +0200 Subject: [PATCH] fix: use node to get realpath (fail on mac) --- report-failure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report-failure.sh b/report-failure.sh index a032eba..52d9c2e 100755 --- a/report-failure.sh +++ b/report-failure.sh @@ -1,7 +1,7 @@ SCRIPT_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" file=$1 -relativePath=$(realpath --relative-to="$(pwd)" "$file") +relativePath=$(node -e "console.log(require('path').relative('$(pwd)', '$file'))") message=$4 if [ -z "$message" ]; then