Fix problem with some passwords and login names
This commit is contained in:
parent
c984e72901
commit
82557b7196
2 changed files with 3 additions and 3 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
*.csv
|
||||
*.kdbx
|
||||
|
|
|
@ -31,12 +31,11 @@ if [[ -f "$FINAL_FILE_NAME" ]]; then
|
|||
GPG_FILE_NAME=${GPG_FILE_NAME/\.gpg/}
|
||||
|
||||
PASSWORD=$($PASS_EXECUTABLE show "$GPG_FILE_NAME" | head -n1)
|
||||
PASSWORD=${PASSWORD/\"/\\\"}
|
||||
|
||||
LOGIN_KEY=$($PASS_EXECUTABLE show "$GPG_FILE_NAME" | awk '/login/ || /ID/ || /email/ {print $2}')
|
||||
LOGIN_KEY=$($PASS_EXECUTABLE show "$GPG_FILE_NAME" | awk '/^login:|ID:|email:|user:/ {ORS=" ";for(i=2; i<=NF; i++) print $i; exit;}')
|
||||
GPG_FILE_NAME=${GPG_FILE_NAME//\// > }
|
||||
|
||||
echo "Processing ${GPG_FILE_NAME}";
|
||||
echo "Processing $GPG_FILE_NAME";
|
||||
echo "$GPG_FILE_NAME$DELIMITER$PASSWORD$DELIMITER$LOGIN_KEY" >> $FINAL_FILE_NAME
|
||||
}; done;
|
||||
unset f;
|
||||
|
|
Loading…
Reference in a new issue