AnsibleFATE icon indicating copy to clipboard operation
AnsibleFATE copied to clipboard

deploy/deploy.sh: 10: Syntax error: "(" unexpected

Open ZuoGuocai opened this issue 4 years ago • 2 comments

When I deploy AnsibleFATE-1.7.0-release-offline as wiki referfence (https://github.com/FederatedAI/AnsibleFATE/blob/main/docs/ansible_deploy_three_sides.md), I suck into troube in the first step. I wonder why, I need help.

sh deploy/deploy.sh init -h="10000:10.240.16.38" -g="9999:10.240.16.39" -e="10.240.16.40" -k="host|exchange"
deploy/deploy.sh: 10: Syntax error: "(" unexpected

ZuoGuocai avatar Dec 27 '21 08:12 ZuoGuocai

@ZuoGuocai Apologies for the delay。

when I copy your command and commit it。 Erverything is ok。

If your shell is bash ? Can you show me outpu informations more?

ls -l /bin/sh 

sh -x  deploy/deploy.sh init -h="10000:10.240.16.38" -g="9999:10.240.16.39" -e="10.240.16.40" -k="host|exchange"

Thanks you very much.

or0or1 avatar Jan 13 '22 04:01 or0or1

Your shell maybe dash. Change it to the bash.

licy666 avatar Aug 25 '22 01:08 licy666