mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
check exit code directly in update_date function
This commit is contained in:
parent
8fb570b003
commit
f95ae51af8
4
ani-cli
4
ani-cli
@ -245,9 +245,7 @@ update_date() {
|
|||||||
insert_history() {
|
insert_history() {
|
||||||
datetime=$(date +'%Y-%m-%d %H:%M:%S')
|
datetime=$(date +'%Y-%m-%d %H:%M:%S')
|
||||||
lg "Checking if ($*) exists in db"
|
lg "Checking if ($*) exists in db"
|
||||||
check_db "$@"
|
if ! check_db "$@"; then
|
||||||
res="$?"
|
|
||||||
if [[ $res -gt 0 ]]; then
|
|
||||||
lg "Match found... Updating row in history db..."
|
lg "Match found... Updating row in history db..."
|
||||||
update_date "$@"
|
update_date "$@"
|
||||||
res=$?
|
res=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user