I've got this in a docker build file: RUN 'echo "y" | /usr/bin/task'
When building, this error is thrown:
=> ERROR [tool_config 9/11] RUN 'echo "y" | /usr/bin/task' 0.2s
------
> [tool_config 9/11] RUN 'echo "y" | /usr/bin/task':
#15 0.164 /bin/sh: echo "y" | /usr/bin/task: not found
------
executor failed running [/bin/sh -c 'echo "y" | /usr/bin/task']: exit code: 127
The command runs fine when manually run from insside the container. The task
command is definitely installed.
Without without quotes, RUN echo "y" | task
gives:
=> ERROR [tool_config 9/11] RUN echo "y" | /usr/bin/task 0.2s
------
> [tool_config 9/11] RUN echo "y" | /usr/bin/task:
#15 0.176 A configuration file could not be found in /root
#15 0.176
#15 0.176 Would you like a sample /root/.taskrc created, so Taskwarrior can proceed? (yes/no) No matches.
------
executor failed running [/bin/sh -c echo "y" | /usr/bin/task]: exit code: 1