cleanup gencode
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								63f702ceae
							
						
					
				
			
			
				commit
				
					
						68b6f46a91
					
				
			
		
					 1 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
					@ -22,13 +22,14 @@
 | 
				
			||||||
# example for typewrites later
 | 
					# example for typewrites later
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
. cdist-config
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
pwd -P >&2
 | 
					 | 
				
			||||||
ls >&2
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
type="$(cat type)"
 | 
					type="$(cat type)"
 | 
				
			||||||
path="$(cat destination)"
 | 
					
 | 
				
			||||||
 | 
					# If destination was specified, do not use the id
 | 
				
			||||||
 | 
					if [ -f destination ]; then
 | 
				
			||||||
 | 
					   destination="$(cat destination)"
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
					   destination="$1"
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
case "$type" in
 | 
					case "$type" in
 | 
				
			||||||
   directory)
 | 
					   directory)
 | 
				
			||||||
| 
						 | 
					@ -43,7 +44,6 @@ case "$type" in
 | 
				
			||||||
      echo "Unsupported type: \"$type\"" >&2
 | 
					      echo "Unsupported type: \"$type\"" >&2
 | 
				
			||||||
      exit 1
 | 
					      exit 1
 | 
				
			||||||
   ;;
 | 
					   ;;
 | 
				
			||||||
 | 
					 | 
				
			||||||
esac
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ -f mode ]; then
 | 
					if [ -f mode ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue