kontaktdb

Store, retrieve, and edit basic contact information in plain text.
git clone https://git.sr.ht/~jbauer/kontaktdb
Log | Files | Refs | README | LICENSE

commit 2f16f1684188939c949313567788cc00210b46f9
parent 3d56cd1075a015b1cd4873cb9ed38a8cb4136223
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Fri, 12 Jun 2020 18:01:32 -0400

Quote unquoted variables to prevent globbing/splitting

Diffstat:
Mkontakt | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kontakt b/kontakt @@ -47,7 +47,7 @@ add_contact() exit 1 fi - printf "%s\t%s\n" "$email" "$name" >> $addressFile + printf "%s\t%s\n" "$email" "$name" >> "$addressFile" echo "New contact added to database" } @@ -66,7 +66,7 @@ change_contact() original=$(retrieve_contact) sed -i "/$original/d" "$addressFile" - printf "%s\t%s\n" "$email" "$name" >> $addressFile + printf "%s\t%s\n" "$email" "$name" >> "$addressFile" echo "Contact information changed" }