Description
When two string literals are directly added to one another, they should be combined into a single string literal.
Small example input
postPatch =
''
# Replace hardcoded bin install path
substituteInPlace SerialPortConnector.pro \
--replace-fail '/opt/$$''
+ ''
{TARGET}/bin' "$out/bin"
'';
Expected output
postPatch = ''
# Replace hardcoded bin install path
substituteInPlace SerialPortConnector.pro \
--replace-fail '/opt/$''${TARGET}/bin' "$out/bin"
'';
Actual output
postPatch = ''
# Replace hardcoded bin install path
substituteInPlace SerialPortConnector.pro \
--replace-fail '/opt/$$''
+ ''
{TARGET}/bin' "$out/bin"
'';