ci(merge rep): prevent interpolation in commit msg
Created by: cathales
Double quotes behaviour in shell is that it avoids spaces; however the shell still performs $() and `` interpolations. To avoid that, we must use single quotes instead.
To prevent a double quote in the message from ending the string, it was replaced by a single quote. Instead, here we chase the single quotes by:
- Ending the first string using a single quote.
- Starting a second string using a double quote.
- Placing the single quote we want to display in the message.
- Ending the second string using another double quote.
- Starting a third string using another single quote.
As there are no spaces, the shell merges the three strings.
For instance the message a'b is enquoted as 'a'"'"'b' which are three merged strings 'a', "'" and 'b'.