[db_set] All conditional will now not overwrite LAST_DEPLOY and LAST_UPDATE rows
This commit is contained in:
parent
dba832edba
commit
d06aa7beb6
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ db_set() {
|
|||
local CONDITION="${@}"
|
||||
|
||||
if [[ "${CONDITION}" == "all" ]]; then
|
||||
gawk -i inplace -v selected=${SELECTED} 'BEGIN{FS="\t";OFS="\t";}{$1=selected}{print $0}' "${DB_FILE}"
|
||||
gawk -i inplace -v selected=${SELECTED} 'BEGIN{FS="\t";OFS="\t";}{if($1!="LAST_DEPLOY" && $1!="LAST_UPDATE" && $1!="null"){$1=selected}{print $0}}' "${DB_FILE}"
|
||||
cat "${DB_FILE}"
|
||||
return 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue