Skip to content

Commit 16d5d1f

Browse files
committed
only use readlink -e if it is supported
1 parent c920e62 commit 16d5d1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

run-test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ if ! test -f "$RUST_SRC/Cargo.lock"; then
2626
echo "Set RUST_SRC to the Rust source directory, or install the rust-src component."
2727
exit 1
2828
fi
29-
RUST_SRC=$(readlink -e "$RUST_SRC")
29+
if readlink -e . &>/dev/null; then
30+
RUST_SRC=$(readlink -e "$RUST_SRC")
31+
fi
3032

3133
# update symlink
3234
rm -f lib$CRATE

0 commit comments

Comments
 (0)