fix source record
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								8591dde49a
							
						
					
				
			
			
				commit
				
					
						77038026a9
					
				
			
		
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -31,7 +31,7 @@ fi
 | 
				
			||||||
set -aeu
 | 
					set -aeu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__cdist_output_dir="$1"; shift
 | 
					__cdist_output_dir="$1"; shift
 | 
				
			||||||
__cdist_manifest="$1"; shift
 | 
					export __cdist_manifest="$1"; shift
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Ensure binaries exist and are up-to-date
 | 
					# Ensure binaries exist and are up-to-date
 | 
				
			||||||
cdist-build-bin
 | 
					cdist-build-bin
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,6 +46,9 @@ fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
mkdir -p "${__cdist_ddir}"
 | 
					mkdir -p "${__cdist_ddir}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Record (correct ;-) source
 | 
				
			||||||
 | 
					echo "${__cdist_manifest}" > "${__cdist_ddir}/${__cdist_object_source}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
while [ $# -gt 0 ]; do
 | 
					while [ $# -gt 0 ]; do
 | 
				
			||||||
   opt="$1"; shift
 | 
					   opt="$1"; shift
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -62,6 +65,4 @@ while [ $# -gt 0 ]; do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   echo "${value}" > "${__cdist_ddir}/${opt_file}"
 | 
					   echo "${value}" > "${__cdist_ddir}/${opt_file}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   echo "${__cdist_abs_myname}" > "${__cdist_ddir}/${__cdist_object_source}"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue