~smlavine/scripts

79a294519c614d9b2388d35c20e93c5c51ae7405 — Sebastian LaVine 9 days ago 7419c23 master
src/mypassmenu: Document bug
1 files changed, 1 insertions(+), 0 deletions(-)

M src/mypassmenu
M src/mypassmenu => src/mypassmenu +1 -0
@@ 56,5 56,6 @@ pw="$(sort -rnk 2 "$weights" | cut -f1 | dmenu -i -c -fn 20 -sb '#b00' -l 30)"
pass show -c "$pw"

# Increment the weight of the password chosen.
# FIXME: deletes any comments after the weight amount
awk '$1 == "'"$pw"'" { print $1 "\t" $2+1; next } { print $0 }' "$weights" |
	sponge "$weights"