diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-17 23:19:32 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-17 23:19:32 +0200 |
commit | 6d4e211f9b45adf939c6e52fe4811e1385c7e8a2 (patch) | |
tree | bf9c5b67e686e1ad2463e28064d6d635f6033635 /bin/menuscripts/mpassgen | |
parent | 7277e2cdd10f894d75fcb0fd3d06be6eb2a476fd (diff) |
renamed mpassgen to mpwgen
Diffstat (limited to 'bin/menuscripts/mpassgen')
-rwxr-xr-x | bin/menuscripts/mpassgen | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/bin/menuscripts/mpassgen b/bin/menuscripts/mpassgen deleted file mode 100755 index 51b9bc4..0000000 --- a/bin/menuscripts/mpassgen +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env sh - -input () { commander -c -i -p "$1"; } - -choice="$(printf "multiline\nsingle\n" | commander -c -d)" -[ "$choice" ] || exit 1 - -password="$(input "name:")" -[ "$password" ] || exit 1 - -if [ "$choice" = "multiline" ] -then - login="$(find "${PASSWORD_STORE_DIR:=$HOME/.password-store}"/e-mails -type f -maxdepth 1 -iname "*.gpg" -printf "%f\n" | - sed 's/\.gpg$//' | commander -c -d -p 'login:')" - [ "$login" ] || exit 1 - url="$(input "url:")" - [ "$url" ] || exit 1 - printf "%s\nlogin: %s\nurl: %s\n" "${password}" "${login}" "${url}" | - pass insert -mf "${password}" - pass generate -ci "${password}" -else - pass generate -cf "${password}" -fi |