Bash Compile Error for variable ending in '\'
Issue that occurs when a Bash script input variable ends in a '\' character. The script fails to compile and throws the following error when executing on a target host:
bash: -c: line 13: unexpected EOF while looking for matching `"'
bash: -c: line 14: syntax error: unexpected end of file
Executing on a delegate works as expected.
Created by Usheer Fotedar
·