The command cmd 'apt-get install -y docker-ce=«version» --allow-unauthenticated' is correctly compiled to "apt-get install -y docker-ce=" + this.version + " --allow-unauthenticated". However, introducing a line break after the version variable produces a different string:
The resulting string is "apt-get install -y docker-ce=" + this.version + "--allow-unauthenticated". There is a missing space before --allow-unauthenticated.
The command
cmd 'apt-get install -y docker-ce=«version» --allow-unauthenticated'
is correctly compiled to"apt-get install -y docker-ce=" + this.version + " --allow-unauthenticated"
. However, introducing a line break after the version variable produces a different string:The resulting string is
"apt-get install -y docker-ce=" + this.version + "--allow-unauthenticated"
. There is a missing space before--allow-unauthenticated
.