dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 954235307e04dcd1c4ce0fd0aa450a999a464bb9
parent 9daef882afb988f43a3e96f9e0bfc1adaadc24bb
Author: hhvn <dev@haydenvh.com>
Date:   Sat, 13 Mar 2021 18:12:09 +0000

.s/b/dpass: exit on no name

Diffstat:
M.scripts/bin/dpass | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.scripts/bin/dpass b/.scripts/bin/dpass @@ -20,7 +20,10 @@ case "$chosen" in generate) new=$(head -c 2000 /dev/urandom | tr -dc 'a-zA-Z0-9~!@#$%^&*_+=-' | fold -w 35 | shuf | head -n 1) newname=$(echo | dmenu -i -p "Name for passwd?") - [ "$newname" = "" ] && newname="pleaseeditthis" + [ "$newname" = "" ] && { + herbe "dpass exiting... no pass given" + exit 1 + } echo "$newname: $new" >> $PASS echo "$new" | xclip (