forked from ungleich-public/cdist
		
	cleanups
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								b1c5012f3c
							
						
					
				
			
			
				commit
				
					
						cae8f31923
					
				
			
		
					 2 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
					@ -13,7 +13,10 @@ Do not believe anything written in cdist, besides what's written in this file
 | 
				
			||||||
 | 
					
 | 
				
			||||||
What you can do so far: (executed from top level directory)
 | 
					What you can do so far: (executed from top level directory)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The following code will get executed if you run this README:
 | 
					The following code will get executed if you run this README,
 | 
				
			||||||
 | 
					I usually do it like this:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   % rm -rf /tmp/localhost && ./HACKERS_README
 | 
				
			||||||
 | 
					
 | 
				
			||||||
eof
 | 
					eof
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,7 +24,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
. cdist-config
 | 
					. cdist-config
 | 
				
			||||||
[ $# -eq 3 ] || __cdist_usage "<target host>" "<object_base_dir>" "<object>"
 | 
					[ $# -eq 3 ] || __cdist_usage "<target host>" "<object_base_dir>" "<object>"
 | 
				
			||||||
set -u
 | 
					set -eu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export __cdist_target_host="$1"; shift
 | 
					export __cdist_target_host="$1"; shift
 | 
				
			||||||
export __cdist_object_base_dir="$1"; shift
 | 
					export __cdist_object_base_dir="$1"; shift
 | 
				
			||||||
| 
						 | 
					@ -54,6 +54,8 @@ if [ -x "$gencode" ]; then
 | 
				
			||||||
 | 
					
 | 
				
			||||||
eof
 | 
					eof
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					   # Catch errors ourself now
 | 
				
			||||||
 | 
					   set +e
 | 
				
			||||||
   "$gencode"; ret=$?
 | 
					   "$gencode"; ret=$?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue