Merge pull request #9930 from rvl/print-dev-env-unbound-variables

print-dev-env: Avoid using unbound shellHook variable
(cherry picked from commit 25385a408ef7281d966c8732608833e224b32586)
Change-Id: Id1aca13942adfa628f7bdcfc0b6fc03bb3bab9ea
This commit is contained in:
eldritch horrors
2024-03-04 08:51:49 +01:00
parent 625df32afc
commit 9ef32cf3b8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -318,7 +318,7 @@ struct Common : InstallableCommand, MixProfile
for (auto & i : {"TMP", "TMPDIR", "TEMP", "TEMPDIR"})
out << fmt("export %s=\"$NIX_BUILD_TOP\"\n", i);
out << "eval \"$shellHook\"\n";
out << "eval \"${shellHook:-}\"\n";
auto script = out.str();