4 Commits

Autor SHA1 Mensagem Data
  Luke Smith a8863a750a
Merge pull request #958 from jdujava/master 1 ano atrás
  Luke Smith 7a1fe918a1
Merge pull request #953 from rampaq/pipe-to-pass 1 ano atrás
  Jonas Dujava 8d78212cad fix: reorder action 1 ano atrás
  Tomáš Faikl (astro) 268da5d51b pipe password directly to pass 1 ano atrás
1 arquivos alterados com 4 adições e 10 exclusões
Visão dividida
  1. +4
    -10
      bin/mw

+ 4
- 10
bin/mw Ver arquivo

@@ -174,20 +174,14 @@ askinfo() {
hostname="${fulladdr#*@}"
login="${login:-$fulladdr}"
if [ -n "${password+x}" ]; then
createpass
insertpass
else
getpass
fi
}

createpass() {
echo "$password" >"$PASSWORD_STORE_DIR/$passprefix$fulladdr"
"$GPG" -qe $(printf -- " -r %s" $(cat "$PASSWORD_STORE_DIR/.gpg-id")) "$PASSWORD_STORE_DIR/$passprefix$fulladdr"
case "$(uname)" in
Darwin | *BSD) rm -P "$PASSWORD_STORE_DIR/$passprefix$fulladdr" ;;
*) shred -u "$PASSWORD_STORE_DIR/$passprefix$fulladdr" ;;
esac
rm -f "$PASSWORD_STORE_DIR/$passprefix$fulladdr"
insertpass() {
printf "%s" "$password" | pass insert -fe "$PASSWORD_STORE_DIR/$passprefix$fulladdr"
}

errorexit() {
@@ -328,7 +322,7 @@ reorder() {

while getopts "rfpXlhodTYD:y:i:I:s:S:u:a:n:P:x:m:t:" o; do case "${o}" in
l) setact list ;;
r) setact reorder1 ;;
r) setact reorder ;;
d) setact delete ;;
D)
setact delete


Carregando…
Cancelar
Salvar