[db_set] In the event of "all" conditional, will output full DB_FILE for match count

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

View file

@ -23,6 +23,7 @@ db_set() {
if [[ "${CONDITION}" == "all" ]]; then
gawk -i inplace -v selected=${SELECTED} 'BEGIN{FS="\t";OFS="\t";}{$1=selected}{print $0}' "${DB_FILE}"
cat "${DB_FILE}"
return 0
fi