forked from ungleich-public/cdist
		
	cleanup + replace __cdist_object_base_dir
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								94fce76b02
							
						
					
				
			
			
				commit
				
					
						313e92779c
					
				
			
		
					 1 changed files with 5 additions and 9 deletions
				
			
		| 
						 | 
					@ -18,21 +18,17 @@
 | 
				
			||||||
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
 | 
					# along with cdist. If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# This binary is executed on the remote side to execute explorers
 | 
					# This binary is executed on the remote side to execute code
 | 
				
			||||||
# 
 | 
					 | 
				
			||||||
# It supports different variables names to be used, so __explorers
 | 
					 | 
				
			||||||
# and __type_explorers can be submitted :-)
 | 
					 | 
				
			||||||
# 
 | 
					# 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
. cdist-config
 | 
					. cdist-config
 | 
				
			||||||
if [ $# -ne 1 ]; then
 | 
					[ $# -eq 1 ] || __cdist_usage "<object dir>"
 | 
				
			||||||
   __cdist_usage "<object dir>"
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
set -ue
 | 
					set -ue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__cdist_object_base_dir="$1"; shift
 | 
					# Warning: Variable is special, as interpreted by __cdist_object_dir()
 | 
				
			||||||
 | 
					__cdist_out_object_dir="$1"; shift
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__cdist_object_list "$__cdist_object_base_dir" > "$__cdist_tmp_file"
 | 
					__cdist_object_list "$__cdist_out_object_dir" > "$__cdist_tmp_file"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# FIXME post 1.0: add dependencies
 | 
					# FIXME post 1.0: add dependencies
 | 
				
			||||||
while read object; do
 | 
					while read object; do
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue