aboutsummaryrefslogtreecommitdiffstats
path: root/addpass
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-08-21 19:09:55 +0200
committerRasmus Steinke <rasi@xssn.at>2015-08-21 19:09:55 +0200
commit19c4a026c40d0706210b2ae5a699988a0e8b624d (patch)
treead430b93ed11a7f112651bf4e7237cc55ac5b70d /addpass
parentc1976347bcc4b066715a0eb60b1525d5215c0770 (diff)
downloadrofi-pass-19c4a026c40d0706210b2ae5a699988a0e8b624d.tar.gz
actually use PASSWORD_STORE_DIR
Diffstat (limited to 'addpass')
-rwxr-xr-xaddpass4
1 files changed, 2 insertions, 2 deletions
diff --git a/addpass b/addpass
index 5b2ec20..5b68076 100755
--- a/addpass
+++ b/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}"