This code:
script = pkgs.writeShellScriptBin "script_name" (
if condition then # sh
''
#!/usr/bin/env sh
''
else # sh
''
#!/usr/bin/env sh
''
Becomes:
script = pkgs.writeShellScriptBin "script_name" (
if condition then # sh
''
#!/usr/bin/env sh
'';
else # sh
''
#!/usr/bin/env sh
''
After formatting, which is invalid.
This code:
script = pkgs.writeShellScriptBin "script_name" (
if condition then # sh
''
#!/usr/bin/env sh
''
else # sh
''
#!/usr/bin/env sh
''
Becomes:
script = pkgs.writeShellScriptBin "script_name" (
if condition then # sh
''
#!/usr/bin/env sh
'';
else # sh
''
#!/usr/bin/env sh
''
After formatting, which is invalid.