Skip to content

Commit

Permalink
fix: use node to get realpath (fail on mac)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Sep 16, 2024
1 parent 6dab8c5 commit f6a334f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report-failure.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f6a334f

Please sign in to comment.