move whole object
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								0d0e5b65d6
							
						
					
				
			
			
				commit
				
					
						5985fafe86
					
				
			
		
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -93,11 +93,8 @@ while [ "$__cdist_new_objects_created" = "y"  ]; do
 | 
			
		|||
               # Source of the new object
 | 
			
		||||
               __cdist_new_object_dir="${__cdist_new_objects_dir}/$__cdist_new_object"
 | 
			
		||||
 | 
			
		||||
               mkdir -p "$__cdist_object_dir"
 | 
			
		||||
 | 
			
		||||
               # Move parameters and source information
 | 
			
		||||
               mv "${__cdist_new_object_dir}/"* "$__cdist_object_dir"
 | 
			
		||||
               mv "${__cdist_new_object_dir}/${__cdist_name_object_source}" "$__cdist_object_dir"
 | 
			
		||||
               # Move object, not only parts
 | 
			
		||||
               mv "${__cdist_new_object_dir}/" "$__cdist_object_dir"
 | 
			
		||||
            done < "$__cdist_new_objects_list"
 | 
			
		||||
 | 
			
		||||
            # Remove listing and objects, otherwise the next type will reuse it...
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue