commit 4731385d891eb4ac699daf152665f6f04be0f671 parent bad9c32910d4f2621d3a3624c3da1c78957e6c7d Author: Sören Tempel <soeren+git@soeren-tempel.net> Date: Tue, 26 May 2015 19:35:07 +0200 Don't overwrite entries by default Instead advice the user to remove the entry manually. Diffstat:
M | tpm | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tpm b/tpm @@ -79,8 +79,8 @@ insert() { abort "USAGE: tpm insert ENTRY" fi - if [ -e "${entry_path}" ] && [ -t 0 ]; then - echo "This entry already exists it will be overwritten." + if [ -e "${entry_path}" ]; then + abort "This entry already exists, please remove it first." fi readpw "Password for '${entry_name}': " password