[db_set] Fixed bug with awk statement
This commit is contained in:
parent
dc2f09d4e3
commit
0c670b69db
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";}{$1=selected}{print $0}' "${DB_FILE}"
|
||||
gawk -i inplace -v selected=${SELECTED} 'BEGIN{FS="\t";OFS="\t";}{$1=selected}{print $0}' "${DB_FILE}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue