i have installed netbeans successfully in my tinycore,but running netbeans,always report
./netbeans: line 183: syntax error: unexpected "then"
183: if grep -v -- "-J-Xmx" >/dev/null <<EOF ; then
184: ${netbeans_default_options}
185: EOF
186: heap_size
187: netbeans_default_options="-J-Xmx${max_heap_size}m ${netbeans_default_options}"
188: fi
who can tell me where is script erro?