[arkdep] Fix lock not removed on db download fail

This commit is contained in:
Dennis ten Hoove 2024-09-24 20:36:18 +02:00
parent 0a6314f664
commit 5ca9260884
No known key found for this signature in database
GPG key ID: 2BA91DC2563B83D1

4
arkdep
View file

@ -659,7 +659,7 @@ diff () {
if [[ $curl_data == 'ERROR' ]]; then
printf '\e[1;31m<#>\e[0m Failed to download database\e[0m\n'
exit 1
unlock_and_quit 1
fi
for db_entry in ${curl_data[@]}; do
@ -675,7 +675,7 @@ diff () {
if [[ $curl_data == 'ERROR' ]]; then
printf '\e[1;31m<#>\e[0m Failed to download database\e[0m\n'
exit 1
unlock_and_quit 1
fi
database_hit=${curl_data[0]}