Skip to content

Commit 3aebdcd

Browse files
committed
fix bench deps update
1 parent b4a5243 commit 3aebdcd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ci/prepare_bench_deps.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,15 @@ install_dkjson() {
5555
cd "${lua_base}" || exit 1
5656

5757
for dep in lpeg cjson dkjson; do
58-
update=n
5958
eval dep_archive='"$'${dep}_archive'"'
6059
eval dep_url='"$'${dep}_url'"'
6160
eval dep_checksum='"$'${dep}_checksum'"'
62-
download "${dep_archive}" "${dep_url}" "${dep_checksum}"
61+
if [ -e "${dep_archive}" ]; then
62+
update=n
63+
else
64+
update=y
65+
fi
66+
download "${dep_archive}" "${dep_url}" "${dep_checksum}" || exit $?
6367
for lua_impl in ${lua_impls}; do
6468
set_lua_vars
6569
mkdir -p "${lua_lib}" || exit $?

0 commit comments

Comments
 (0)