I'm trying to run the following:
bash -c "[[ -d foo ]] || { mkdir foo && echo create foo done }"
But I get following error:
bash: -c: line 1: syntax error: unexpected end of file
Why do I get above error? How can I fix it?
I'm trying to run the following:
bash -c "[[ -d foo ]] || { mkdir foo && echo create foo done }"
But I get following error:
bash: -c: line 1: syntax error: unexpected end of file
Why do I get above error? How can I fix it?