Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: freyone on June 16, 2016, 06:30:09 PM

Title: who can help me fix netbeans issue
Post by: freyone on June 16, 2016, 06:30:09 PM
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?
Title: Re: who can help me fix netbeans issue
Post by: curaga on June 17, 2016, 01:56:47 AM
Probably a bash-specific construct. Change the first line to #!/bin/bash and install bash if you haven't.
Title: Re: who can help me fix netbeans issue
Post by: gerald_clark on June 17, 2016, 05:52:29 AM
Your ";then" is inside your here document.
Put the "then" on a line after the "EOF".
Title: Re: who can help me fix netbeans issue
Post by: freyone on June 19, 2016, 06:39:34 PM
Probably a bash-specific construct. Change the first line to #!/bin/bash and install bash if you haven't.
thanks.
It is ok。