echo may not expand escape sequences. Use printf.
41RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh
42
43# Prevent SSH repo timout for an hour.
44RUN mkdir -p /root/.ssh && echo "Host *\n ServerAliveInterval 60\n ServerAliveCountMax 60" >> ~/.ssh/config45
46# Remove Autonomy Software
47RUN rm -rf /opt/Autonomy_Software
echo may not expand escape sequences. Use printf.
41RUN chown -R docker ~docker && /home/docker/actions-runner/bin/installdependencies.sh
42
43# Prevent SSH repo timout for an hour.
44RUN mkdir -p /root/.ssh && echo "Host *\n ServerAliveInterval 60\n ServerAliveCountMax 60" >> ~/.ssh/config45
46# Remove Autonomy Software
47RUN rm -rf /opt/Autonomy_Software
Description
Backslash escapes like \t
and \n
are not expanded by echo, and become literal backslash-t, backslash-n.
It is recommended to use printf
instead as it does expand these sequences.
Bad Practice
echo "Name:\t$value"
Recommended
printf 'Name:\t%s\n' "$value"