Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit c401fb8

Browse files
committed
test: try to fix sed script for test 104 for MacOS
1 parent 398a9e7 commit c401fb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: test/104/test.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ TEST_URL=https://example.com/hello.git
1010
cd test
1111
$LAKE build
1212
cat lean_packages/manifest.json
13-
sed -i "s,\.\.[^\"]*,$TEST_URL," lean_packages/manifest.json
13+
if [ "`uname`" = Darwin ]; then
14+
sed -i '' "s,\\.\\.[^\"]*,$TEST_URL," lean_packages/manifest.json
15+
else
16+
sed -i "s,\\.\\.[^\"]*,$TEST_URL," lean_packages/manifest.json
17+
fi
1418
cat lean_packages/manifest.json
1519
git -C lean_packages/hello remote set-url origin $TEST_URL
1620
$LAKE build -K url=$TEST_URL

0 commit comments

Comments
 (0)