1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-01-01 15:12:05 +01:00

Bump version

This commit is contained in:
aclist 2022-12-03 21:40:49 +09:00
parent 6860541f5b
commit c9df7f86e8
2 changed files with 9 additions and 5 deletions

View file

@ -6,6 +6,10 @@
- Standardize dialogs - Standardize dialogs
- Validate BM API key - Validate BM API key
## [3.1.1-2] 2022-12-03
### Fixed
- Fix lockfile path
## [3.1.0] 2022-12-03 ## [3.1.0] 2022-12-03
### Added ### Added
- Recent connect history - Recent connect history

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -o pipefail set -o pipefail
version=3.1.1 version=3.1.2
aid=221100 aid=221100
game="dayz" game="dayz"
@ -1712,10 +1712,10 @@ while true; do
done done
} }
lock(){ lock(){
if [[ ! -f $config_path/.lockfile ]]; then if [[ ! -f ${config_path}.lockfile ]]; then
touch $config_path/.lockfile touch ${config_path}.lockfile
fi fi
pid=$(cat $config_path/.lockfile) pid=$(cat ${config_path}.lockfile)
ps -p $pid -o pid= >/dev/null 2>&1 ps -p $pid -o pid= >/dev/null 2>&1
res=$? res=$?
if [[ $res -eq 0 ]]; then if [[ $res -eq 0 ]]; then
@ -1725,7 +1725,7 @@ lock(){
elif [[ $pid == $$ ]]; then elif [[ $pid == $$ ]]; then
: :
else else
echo $$ > $config_path/.lockfile echo $$ > ${config_path}.lockfile
fi fi
} }
fetch_helpers(){ fetch_helpers(){