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