Improve some scripts
This commit is contained in:
		
							parent
							
								
									41935c352c
								
							
						
					
					
						commit
						8d6ab690c4
					
				
					 2 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -30,7 +30,7 @@ pass_path=$project_dir/$(echo "$pass_content" | grep "path:" | cut -d' ' -f2-)
 | 
			
		|||
 | 
			
		||||
case "$1" in
 | 
			
		||||
	edit)
 | 
			
		||||
		pass edit "ansible/$project"
 | 
			
		||||
		ansible-vault edit "$pass_path"
 | 
			
		||||
		exit 0
 | 
			
		||||
		;;
 | 
			
		||||
	deploy)
 | 
			
		||||
| 
						 | 
				
			
			@ -41,6 +41,10 @@ case "$1" in
 | 
			
		|||
		pass insert -m "ansible/$project.file" < "$pass_path"
 | 
			
		||||
		exit 0
 | 
			
		||||
		;;
 | 
			
		||||
	pass-edit)
 | 
			
		||||
		pass edit "ansible/$project"
 | 
			
		||||
		exit 0
 | 
			
		||||
		;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
echo "$pass_content" | head -n 1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue