forked from ungleich-public/cdist
		
	fix state explorer to properly detect already existing ppa
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								327a0f2844
							
						
					
				
			
			
				commit
				
					
						7f0ae7928a
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -26,7 +26,7 @@ name="$__object_id"
 | 
				
			||||||
. /etc/lsb-release
 | 
					. /etc/lsb-release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
repo_name="${name#ppa:}"
 | 
					repo_name="${name#ppa:}"
 | 
				
			||||||
repo_file_name="$(echo "$repo_name" | sed "s:\/:\-:")-${DISTRIB_CODENAME}.list"
 | 
					repo_file_name="$(echo "$repo_name" | sed -e "s|[/:]|-|" -e "s|\.|_|")-${DISTRIB_CODENAME}.list"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ -s "/etc/apt/sources.list.d/${repo_file_name}" ] \
 | 
					[ -s "/etc/apt/sources.list.d/${repo_file_name}" ] \
 | 
				
			||||||
   && echo present || echo absent
 | 
					   && echo present || echo absent
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue