forked from ungleich-public/cdist
		
	allow pip to be non existent during explorer stage
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								53c61d42ad
							
						
					
				
			
			
				commit
				
					
						45053c6d84
					
				
			
		
					 1 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
					@ -35,14 +35,14 @@ else
 | 
				
			||||||
    pip="pip"
 | 
					    pip="pip"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# which is not posix, but command is :-)
 | 
					# If there is no pip, it may get created from somebody else.
 | 
				
			||||||
 | 
					# If it will be created, there is probably no package installed.
 | 
				
			||||||
if ! command -v "$pip" >/dev/null 2>&1; then
 | 
					if ! command -v "$pip" >/dev/null 2>&1; then
 | 
				
			||||||
    echo "No usable pip found at path \"$pip\"" >&2
 | 
					    echo absent
 | 
				
			||||||
    exit 1
 | 
					else
 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    if "$pip" freeze | grep -i -q "^$name=="; then
 | 
					    if "$pip" freeze | grep -i -q "^$name=="; then
 | 
				
			||||||
        echo present
 | 
					        echo present
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
        echo absent
 | 
					        echo absent
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue