Skip to content

Commit 17c8b9a

Browse files
committed
fix(test): use portable realpath
1 parent c67655b commit 17c8b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/wrtag/testdata/scripts/addon-subproc.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ out="$1"
1818
shift
1919
echo "got $# files" >"$out"
2020
for f in "$@"; do
21-
echo "$(realpath --relative-to="$PWD" "$f")" >>"$out"
21+
echo "${f#$PWD/}" >>"$out"
2222
done
2323
-- exp-out --
2424
got 3 files

0 commit comments

Comments
 (0)