build.sh: use full path for flock

Fixes #1044.
This commit is contained in:
Quentin Hibon
2021-08-01 23:47:40 +02:00
parent caa1c9d72e
commit 95a1786c4a

View File

@@ -75,7 +75,7 @@ android_test() {
AVDNAME=${AVD_PREFIX}${API}
(
flock 10
/usr/local/opt/util-linux/bin/flock 10
log_info "Stopping Android emulator..."
while [[ -n $(pgrep -f ${AVDNAME}) ]]; do
pkill -9 -f ${AVDNAME}
@@ -91,7 +91,7 @@ android_test() {
--package "system-images;android-$API;default;x86_64" \
--device "Nexus 4" || return 1
flock -u 10
/usr/local/opt/util-linux/bin/flock -u 10
) 10>/tmp/uhabitsTest.lock
log_info "Launching emulator..."