mirror of
				https://github.com/gaschz/qubes-pass.git
				synced 2025-11-04 05:28:53 +01:00 
			
		
		
		
	Fix minor bug in get-or-generate.
This commit is contained in:
		
							parent
							
								
									2a605bec5b
								
							
						
					
					
						commit
						336c6e2ac9
					
				@ -42,7 +42,7 @@ elif [ "$cmd" == "get-or-generate" ] ; then
 | 
			
		||||
  autogen=$(echo "$autogen" | base64 -d)
 | 
			
		||||
  
 | 
			
		||||
  if [ "$autogen" == "1" ] ; then
 | 
			
		||||
      ret=0 ; out=$(pass -- "$entry") || ret=$?
 | 
			
		||||
      ret=0 ; out=$(pass -- "$entry" 2>&1) || ret=$?
 | 
			
		||||
      if [ "$ret" == "1" ] && echo "$out" | grep -q "not in the password store" ; then
 | 
			
		||||
          logger -t ruddo.PassManage "creating password entry $entry"
 | 
			
		||||
          ret=0 ; out=$(pass generate -- "$entry" 32) || ret=$?
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user