update __file/gencode to include parameters/ prefix
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								5cc342fd68
							
						
					
				
			
			
				commit
				
					
						0c0209e83b
					
				
			
		
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -22,11 +22,11 @@
 | 
			
		|||
# example for typewrites later
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
type="$(cat type)"
 | 
			
		||||
type="$(cat parameters/type)"
 | 
			
		||||
 | 
			
		||||
# If destination was specified, do not use the id
 | 
			
		||||
if [ -f destination ]; then
 | 
			
		||||
   destination="$(cat destination)"
 | 
			
		||||
if [ -f parameters/destination ]; then
 | 
			
		||||
   destination="$(cat parameters/destination)"
 | 
			
		||||
else
 | 
			
		||||
   destination="$1"
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			@ -46,7 +46,7 @@ case "$type" in
 | 
			
		|||
   ;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
if [ -f mode ]; then
 | 
			
		||||
   mode="$(cat mode)"
 | 
			
		||||
if [ -f parameters/mode ]; then
 | 
			
		||||
   mode="$(cat parameters/mode)"
 | 
			
		||||
   echo chmod \"$mode\" \"$destination\"
 | 
			
		||||
fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue