mirror of
				https://github.com/shokinn/.files.git
				synced 2025-11-03 20:18:10 +00:00 
			
		
		
		
	simplify age-import function
This commit is contained in:
		
							parent
							
								
									d4bde11d13
								
							
						
					
					
						commit
						aec7ca3729
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -61,7 +61,7 @@ if [[ $(command -v age) ]]; then
 | 
			
		|||
 | 
			
		||||
    mkdir -p "${dirname}"
 | 
			
		||||
 | 
			
		||||
    echo -n ${data} | age $(echo -n "${recipients_list[@]}" | sed -e "s/^\'//" -e "s/\'$//") --encrypt --armor --output "${secret_path}"
 | 
			
		||||
    echo -n ${data} | age $(sed -e "s/^\'//" -e "s/\'$//" <<<"${recipients_list[@]}") --encrypt --armor --output "${secret_path}"
 | 
			
		||||
 | 
			
		||||
    set +efu +o pipefail
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue