|  | @@ -45,6 +45,7 @@ case "$addwhat" in
 | 
	
		
			
				|  |  |          reducer="$3"
 | 
	
		
			
				|  |  |          props="${@:4}"
 | 
	
		
			
				|  |  |          actargs=$(echo $props | sed 's/\s\+/, /g')
 | 
	
		
			
				|  |  | +        actcomments="// action.$(echo $props | sed 's/\s\+/\\n    \/\/ action./g')"
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          objprops=""
 | 
	
		
			
				|  |  |          if [ ! -z "$props" ]
 | 
	
	
		
			
				|  | @@ -68,7 +69,11 @@ case "$addwhat" in
 | 
	
		
			
				|  |  |              sed -i \
 | 
	
		
			
				|  |  |                  -e "s/default:/case '$actiontype':\n            return $camelcase(state, action);\n        default:/" \
 | 
	
		
			
				|  |  |                  $reducer
 | 
	
		
			
				|  |  | -            sed "s/name/$camelcase/g" $scriptfolder/exampleReducerAction.js >> $reducer
 | 
	
		
			
				|  |  | +            sed \
 | 
	
		
			
				|  |  | +                -e "s/name/$camelcase/g" \
 | 
	
		
			
				|  |  | +                -e "s_return_$actcomments\n    return_g" \
 | 
	
		
			
				|  |  | +                $scriptfolder/exampleReducerAction.js \
 | 
	
		
			
				|  |  | +                >> $reducer
 | 
	
		
			
				|  |  |          fi
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          echo "added action '$actiontype' to [actions.js] and [$reducer]"
 |