forked from ungleich-public/cdist
		
	check for missing objects
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								84b4bf628e
							
						
					
				
			
			
				commit
				
					
						4cc237fa03
					
				
			
		
					 2 changed files with 7 additions and 1 deletions
				
			
		|  | @ -227,7 +227,8 @@ __cdist_object_id_from_object() | ||||||
| 
 | 
 | ||||||
| __cdist_object_dir() | __cdist_object_dir() | ||||||
| { | { | ||||||
|    echo "${__cdist_out_object_dir}/$1" |    __cdist_object_dir="${__cdist_out_object_dir}/$1" | ||||||
|  |    echo "$__cdist_object_dir" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| __cdist_remote_object_dir() | __cdist_remote_object_dir() | ||||||
|  |  | ||||||
|  | @ -30,6 +30,11 @@ __cdist_out_object_dir="$1"; shift | ||||||
| 
 | 
 | ||||||
| object="$1"; shift | object="$1"; shift | ||||||
| 
 | 
 | ||||||
|  | if [ ! -d "$(__cdist_object_dir "$object")" ]; then | ||||||
|  |    __cdist_exit_err "Object $object missing." | ||||||
|  | fi   | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| finished="$(__cdist_object_code_finished "$object")" | finished="$(__cdist_object_code_finished "$object")" | ||||||
| code="$(__cdist_object_code "$object")" | code="$(__cdist_object_code "$object")" | ||||||
| require="$(__cdist_object_require "$object")" | require="$(__cdist_object_require "$object")" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue