writeShellApplication: don't prefix empty PATH

This commit is contained in:
Jonathan Ringer
2022-08-23 22:41:28 +02:00
committed by Bjørn Forsman
parent fa066dd74e
commit dc607cf67b
+2
View File
@@ -286,8 +286,10 @@ rec {
set -o errexit
set -o nounset
set -o pipefail
'' + lib.optionalString (runtimeInputs != [ ]) ''
export PATH="${lib.makeBinPath runtimeInputs}:$PATH"
'' + ''
${text}
'';