mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
Fix unintended deletion
This commit is contained in:
1 parent
83552f833c
commit
d6223e54b0
1 file changed
+1
-1
@@ -534,7 +534,7 @@ local_latlon(){
|
|||||||
echo "$res" > "$coords_file"
|
echo "$res" > "$coords_file"
|
||||||
}
|
}
|
||||||
|
|
||||||
lock
|
lock(){
|
||||||
[[ ! -f $lock_file ]] && touch $lock_file
|
[[ ! -f $lock_file ]] && touch $lock_file
|
||||||
local pid=$(cat $lock_file)
|
local pid=$(cat $lock_file)
|
||||||
ps -p $pid -o pid= >/dev/null 2>&1
|
ps -p $pid -o pid= >/dev/null 2>&1
|
||||||
|
|||||||
Reference in new issue
Block a user