actually use PASSWORD_STORE_DIR
This commit is contained in:
parent
c1976347bc
commit
19c4a026c4
4
addpass
4
addpass
@ -25,7 +25,7 @@ if [[ $1 == "--help" || $1 == "=h" ]]; then
|
||||
echo " Values should be quoted"
|
||||
echo ""
|
||||
echo "Example:"
|
||||
echo "adduser --name \"my password file\" --root \"$HOME/passwords\" +user \"Richard\" +foo \"bar\" +autotype \"foo :tab user :tab pass\""
|
||||
echo "addpass --name \"my password file\" --root \"$HOME/passwords\" +user \"Richard\" +foo \"bar\" +autotype \"foo :tab user :tab pass\""
|
||||
exit
|
||||
else
|
||||
if [[ $* != *"--name "* ]]; then
|
||||
@ -57,5 +57,5 @@ printEntry () {
|
||||
done
|
||||
}
|
||||
|
||||
printEntry | pass insert -m "${group}/${Name}"
|
||||
printEntry | PASSWORD_STORE_DIR="${root}" pass insert -m "${group}/${Name}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user