bash - How do I execute a remote script as a build phase in xcode? -


i have remote script can execute command line without issue:

bash <(curl -ssl 'goo.gl/p1gpqw') 29165be4-ea61-8228-9f33-a9b9dad481a0 ./info.plist 

problem comes when try use in build phase of ios app (to update build number).

the error log:

/users/pr.......: line 2: syntax error near unexpected token `(' /users/pr.......: line 2: `bash <(curl -ssl 'goo.gl/p1gpqw') 7cd17fc7-e724-7240-34ed-927122733119 ./info.plist' 

so question is, there limitations in can through xcode execute or error in syntax?

update: if change /bin/sh /bin/bash, works ... updated question is, /bin/sh equivalent of bash <(curl -ssl 'goo.gl/p1gpqw') 29165be4-ea61-8228-9f33-a9b9dad481a0 ./info.plist making users change complication can make entire thing go sideways.

i tried simplify problem, purpose of reproducibility:

this 1.sh script:

#!/usr/bin/bash echo echo hello world echo echo today : $(date) 

when run in /bin/bash, works fine:

bash $ bash <(./1.sh) hello world today : thu, sep 22, 2016 2:32:19 $ 

when run in /bin/sh gives error:

sh $ bash <(./1.sh) sh: syntax error near unexpected token `(' sh $ 

but, following should work fine in /bin/sh:

sh $ bash -c "bash <(./1.sh)" hello world today : thu, sep 22, 2016 2:35:35 sh $ 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -