adlogix / docker-machine-nfs

Activates NFS on docker-machine
MIT License
794 stars 104 forks source link

/usr/local/bin/docker-machine-nfs: 130: /usr/local/bin/docker-machine-nfs: Syntax error: "(" unexpected (expecting "}") #75

Closed thu4nvd closed 7 years ago

thu4nvd commented 7 years ago

Command tried:

docker-machine-nfs default --shared-folder=/proyectos

The same error happened with command: docker-machine-nfs default Output error only say:

/usr/local/bin/docker-machine-nfs: 130: /usr/local/bin/docker-machine-nfs: Syntax error: "(" unexpected (expecting "}")

System information:

docker-machine version 0.10.0, build 76ed2a6
Docker version 17.03.1-ce, build c6d412e
docker-compose version 1.8.0, build unknown
Linux xxxxxx 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27) x86_64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
  NAME="Debian GNU/Linux"
  VERSION_ID="9"
  VERSION="9 (stretch)"
VirtualBox Graphical User Interface Version 5.1.18 r114002 (Qt5.7.1)
tonivdv commented 7 years ago

Hey @thu4nvd ,

Can you check http://stackoverflow.com/questions/18921350/shell-script-correct-way-to-declare-an-empty-array to see if the script is executed with bash and not something else?

thu4nvd commented 7 years ago

Thank you @tonivdv I am using bash and I changed shebang #!/bin/sh -> #!/bin/bash and script run smoothly.