writeShellApplication: use lib.concatMapAttrsStringSep (#460411)

This commit is contained in:
Yueh-Shun Li
2025-11-10 21:36:27 +00:00
committed by GitHub
@@ -350,12 +350,10 @@ rec {
${lib.concatMapStringsSep "\n" (option: "set -o ${option}") bashOptions}
''
+ lib.optionalString (runtimeEnv != null) (
lib.concatStrings (
lib.mapAttrsToList (name: value: ''
${lib.toShellVar name value}
export ${name}
'') runtimeEnv
)
lib.concatMapAttrsStringSep "" (name: value: ''
${lib.toShellVar name value}
export ${name}
'') runtimeEnv
)
+ lib.optionalString (runtimeInputs != [ ]) ''