Fix unintended deletion

This commit is contained in:
Gergely Koloszar 2025-10-16 20:53:14 +02:00
parent 83552f833c
commit d6223e54b0

View File

@ -534,7 +534,7 @@ local_latlon(){
echo "$res" > "$coords_file"
}
lock
lock(){
[[ ! -f $lock_file ]] && touch $lock_file
local pid=$(cat $lock_file)
ps -p $pid -o pid= >/dev/null 2>&1