use __cdist_abs_mydir instead of which
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								9aa60b3b1d
							
						
					
				
			
			
				commit
				
					
						0d4f2a6c4b
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -26,7 +26,7 @@ set -eu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__cdist_output_dir="$1"; shift
 | 
					__cdist_output_dir="$1"; shift
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__cdist_type_emulator="$(which cdist-type-emulator)"
 | 
					__cdist_type_emulator="$__cdist_abs_mydir/cdist-type-emulator"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ ! -d "${__cdist_type_dir}" ]; then
 | 
					if [ ! -d "${__cdist_type_dir}" ]; then
 | 
				
			||||||
   __cdist_exit_err "$__cdist_type_dir must exist and contain available types"
 | 
					   __cdist_exit_err "$__cdist_type_dir must exist and contain available types"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue