Skip to content

Commit ec2c3ef

Browse files
hgqxjjslawekjaranowski
authored andcommitted
Enhance the script's compatibility to ensure it runs on Linux, macOS, and other systems.
1 parent 93ce70a commit ec2c3ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/resources/symlinks/regen.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ echo -ne 'content' > entry2
1313
zip --symlinks ../non_existing_symlink.zip entry1 entry2
1414
cd ..
1515
rm -rf non_existing_symlink
16-
LC_ALL=C sed -i '' 's/entry2/entry1/' non_existing_symlink.zip
16+
if [ "x$(uname)" = "xLinux" ];then
17+
LC_ALL=C sed -i 's/entry2/entry1/' non_existing_symlink.zip
18+
else
19+
LC_ALL=C sed -i '' 's/entry2/entry1/' non_existing_symlink.zip
20+
fi

0 commit comments

Comments
 (0)