forked from ungleich-public/cdist
		
	no need to export variables
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								9a3d3bf489
							
						
					
				
			
			
				commit
				
					
						bf94bd1aab
					
				
			
		
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -25,13 +25,11 @@
 | 
			
		|||
#
 | 
			
		||||
 | 
			
		||||
. cdist-config
 | 
			
		||||
 | 
			
		||||
[ $# -ge 1 ] || __cdist_usage "<id> <options>"
 | 
			
		||||
 | 
			
		||||
set -eu
 | 
			
		||||
 | 
			
		||||
export __cdist_object_id="$1"; shift
 | 
			
		||||
export __cdist_type="$__cdist_myname"
 | 
			
		||||
__cdist_object_id="$1"; shift
 | 
			
		||||
__cdist_type="$__cdist_myname"
 | 
			
		||||
 | 
			
		||||
echo "$__cdist_object_id" | grep -q "^${__cdist_sane_regexp}\$" || \
 | 
			
		||||
   __cdist_usage "Insane object id, ${__cdist_object_id}."
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue