[db_set] Fixed typo in awk command
This commit is contained in:
parent
8b57e47a00
commit
834594e217
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ db_set() {
|
||||||
|
|
||||||
# Determines which IMAGEIDs present in the DB_FILE match the CONDITION
|
# Determines which IMAGEIDs present in the DB_FILE match the CONDITION
|
||||||
local COUNT=1
|
local COUNT=1
|
||||||
local dbimageidList=$(awk 'BEGIN{FS="\t"}{if($1!="LAST_DEPLOY" && $1!="LAST_UPDATE" && $!="null"){print $2}}' ${DB_FILE} | awk '!seen[$0]++')
|
local dbimageidList=$(awk 'BEGIN{FS="\t"}{if($1!="LAST_DEPLOY" && $1!="LAST_UPDATE" && $1!="null"){print $2}}' ${DB_FILE} | awk '!seen[$0]++')
|
||||||
for dbimageid in ${dbimageidList[@]}; do
|
for dbimageid in ${dbimageidList[@]}; do
|
||||||
local MTAG="$(printf "${GIT_DIR}/%s.tags" ${dbimageid})"
|
local MTAG="$(printf "${GIT_DIR}/%s.tags" ${dbimageid})"
|
||||||
local MATCH="$(grep -i -l "\"${FIELD}\" : \"${VALUE}\"" "${MTAG}")"
|
local MATCH="$(grep -i -l "\"${FIELD}\" : \"${VALUE}\"" "${MTAG}")"
|
||||||
|
|
Loading…
Reference in a new issue