[chk_nonexistent_ids] 2nd attempt at ignoring LAST rows

This commit is contained in:
ayakael 2018-04-15 22:46:17 -04:00
parent 29b8f4d4af
commit 5d199f8315
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -15,7 +15,7 @@ chk_nonexistent_ids() {
local DB_FILE="${2}"
local ERR=false
local rowList=($(awk 'BEGIN{RS="\n";FS="\t";OFS="="}{if($1!="LAST_UPDATE" || $1!="LAST_DEPLOY"){print $2,$3,$4}}' "${DB_FILE}"))
local rowList=($(awk 'BEGIN{RS="\n";FS="\t";OFS="="}{if($1!="LAST_UPDATE" && $1!="LAST_DEPLOY"){print $2,$3,$4}}' "${DB_FILE}"))
local COUNT=1
for row in ${rowList[@]}; do