square / java-code-styles

IntelliJ IDEA code style settings for Square's Java and Android projects.
2.96k stars 771 forks source link

Error while installing on ubuntu #57

Closed saisurya-kat closed 6 years ago

saisurya-kat commented 6 years ago

Getting this error while installing on Ubuntu 17.10

install.sh: 6: install.sh: Bad substitution
install.sh: 15: install.sh: [[: not found
install.sh: 15: install.sh: [[: not found
install.sh: 15: install.sh: [[: not found
install.sh: 15: install.sh: [[: not found
install.sh: 15: install.sh: [[: not found
install.sh: 15: install.sh: [[: not found
install.sh: 15: install.sh: [[: not found

install.sh has this code on line 15 if [[ -d $i ]]; then

saisurya-kat commented 6 years ago

After changing the [[ -d $i ]] to [-d $i ] it worked.

vivekkartha commented 5 years ago

I had the same issue as well, and @saisurya-k fix worked

rcfgnu commented 5 years ago

Or you can use ./install.sh instead of sh install.sh without replacing anything.