[db_update] Fixed bug where script would return too soon during database update

This commit is contained in:
ayakael 2018-04-15 19:01:39 -04:00
parent f06fdf7ac0
commit 525c54296f
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -26,6 +26,6 @@ db_update() {
if [[ -z $(awk -v imageid="${IMAGEID}" -v trackid="${trackid}" 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){print $0}}' ${DB_FILE}) ]]; then if [[ -z $(awk -v imageid="${IMAGEID}" -v trackid="${trackid}" 'BEGIN{FS="\t"}{if($2==imageid && $3==trackid){print $0}}' ${DB_FILE}) ]]; then
echo -e "true\t${IMAGEID}\t${trackid}\tnull" >> ${DB_FILE} echo -e "true\t${IMAGEID}\t${trackid}\tnull" >> ${DB_FILE}
fi fi
return 0
done done
return 0
} }