scripts: fix pass-export TOTP containing too much information for keepassxc
This commit is contained in:
		
							parent
							
								
									fc3c07c093
								
							
						
					
					
						commit
						1af0c86c5e
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -69,6 +69,7 @@
 | 
			
		|||
    pass-export = [
 | 
			
		||||
      pass2csv
 | 
			
		||||
      gnupg
 | 
			
		||||
      sd
 | 
			
		||||
    ];
 | 
			
		||||
    wpass = [
 | 
			
		||||
      wdmenu
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,3 +8,6 @@ pass2csv "$PASSWORD_STORE_DIR" "$HOME/passwords.csv" \
 | 
			
		|||
  -f User '(user|login)(:\s*)?' \
 | 
			
		||||
  -f TOTP 'otpauth(:)?' \
 | 
			
		||||
  -f URL 'url(:\s*)?'
 | 
			
		||||
 | 
			
		||||
# Fix TOTP format for keepass
 | 
			
		||||
sd '"//totp/.*?secret=(.*?)(&.*?)?"' '"$1"' "$HOME/passwords.csv"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue