scripts: fix pass-export TOTP containing too much information for keepassxc
This commit is contained in:
		
							parent
							
								
									65bdab45c6
								
							
						
					
					
						commit
						bc2ee9c165
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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