4 Commits

Autor SHA1 Nachricht Datum
  Luke Smith a8863a750a
Merge pull request #958 from jdujava/master vor 1 Jahr
  Luke Smith 7a1fe918a1
Merge pull request #953 from rampaq/pipe-to-pass vor 1 Jahr
  Jonas Dujava 8d78212cad fix: reorder action vor 1 Jahr
  Tomáš Faikl (astro) 268da5d51b pipe password directly to pass vor 1 Jahr
1 geänderte Dateien mit 4 neuen und 10 gelöschten Zeilen
  1. +4
    -10
      bin/mw

+ 4
- 10
bin/mw Datei anzeigen

@@ -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


Laden…
Abbrechen
Speichern