Installation, Unary operator expected in cygwin, quotes?
ErnWong opened this issue · comments
Hi,
In the if statement, line 58, should there be quotes around $os
?
Because, when I reran install-sdk.sh
in cygwin, I got:
$./scripts/install-sdk.sh
Already up-to-date.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10911 100 10911 0 0 12755 0 --:--:-- --:--:-- --:--:-- 13322
bash: line 58: [: !=: unary operator expected
Installing base packages. Use --help for more options
bash: line 58: [: !=: unary operator expected
:Installing Node v0.12.0
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
and Googling brought this up.
Somehow install-sdk.sh
worked in cygwin the first time though. I got the output saved somewhere.
Hi
Thank you for reporting this issue.
install.sh shouldn't be invoked on windows, there was a regression which is fixed by c9/core@4c64c52#diff-4b4140932aa09b9ff43e0024a639e337R96
But adding the quotes is a good idea anyway a0f4489
Please reopen if you still see any error when running install-sdk.sh