[db_set] Fixed bug with awk statement

This commit is contained in:
ayakael 2018-05-15 23:24:01 -07:00
parent dc2f09d4e3
commit 0c670b69db
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -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