Skip to content

Commit ef26438

Browse files
committed
fix: use assignment for counter increment to avoid set -e exit
1 parent bf4b984 commit ef26438

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/build-kotlin.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,22 @@ create_android_lib() {
188188

189189
if [[ -f "${PROJECT_ROOT}/target/aarch64-linux-android/release/libcooklang_find.so" ]]; then
190190
cp "${PROJECT_ROOT}/target/aarch64-linux-android/release/libcooklang_find.so" "$jni_dir/arm64-v8a/"
191-
((copied++))
191+
copied=$((copied + 1))
192192
fi
193193

194194
if [[ -f "${PROJECT_ROOT}/target/armv7-linux-androideabi/release/libcooklang_find.so" ]]; then
195195
cp "${PROJECT_ROOT}/target/armv7-linux-androideabi/release/libcooklang_find.so" "$jni_dir/armeabi-v7a/"
196-
((copied++))
196+
copied=$((copied + 1))
197197
fi
198198

199199
if [[ -f "${PROJECT_ROOT}/target/x86_64-linux-android/release/libcooklang_find.so" ]]; then
200200
cp "${PROJECT_ROOT}/target/x86_64-linux-android/release/libcooklang_find.so" "$jni_dir/x86_64/"
201-
((copied++))
201+
copied=$((copied + 1))
202202
fi
203203

204204
if [[ -f "${PROJECT_ROOT}/target/i686-linux-android/release/libcooklang_find.so" ]]; then
205205
cp "${PROJECT_ROOT}/target/i686-linux-android/release/libcooklang_find.so" "$jni_dir/x86/"
206-
((copied++))
206+
copied=$((copied + 1))
207207
fi
208208

209209
if [[ $copied -eq 0 ]]; then

0 commit comments

Comments
 (0)