Scripts version 2263

This commit is contained in:
Mikhail Tergoev
2024-03-15 02:50:08 +03:00
parent 1280cb9ac5
commit e623b589e8
4 changed files with 13 additions and 4 deletions

View File

@ -865,14 +865,15 @@ check_user_conf
check_variables PW_LOG "0"
if [[ -z "${INSTALLING_PORT}" ]] ; then
if [[ -f "$HOME/.config/.portproton.lock" ]] ; then
if [[ -f "/tmp/portproton.lock" ]] ; then
print_warning "Found lock file: /tmp/portproton.lock"
yad_info "$loc_gui_portproton_lock"
exit 0
fi
touch "$HOME/.config/.portproton.lock"
touch "/tmp/portproton.lock"
rm_lock_file () {
echo "Removing the lock file..."
rm "$HOME/.config/.portproton.lock" && echo "OK"
rm -fv "/tmp/portproton.lock" && echo "OK"
}
trap "rm_lock_file" EXIT