Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started 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?
-
Probably a bash-specific construct. Change the first line to #!/bin/bash and install bash if you haven't.
-
Your ";then" is inside your here document.
Put the "then" on a line after the "EOF".
-
Probably a bash-specific construct. Change the first line to #!/bin/bash and install bash if you haven't.
thanks.
It is ok。