Skip to content

Commit d5eac3c

Browse files
committed
Remove unused export of CmdletSessionId from generated shell script
1 parent 92ce8ae commit d5eac3c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/CLU/Microsoft.CLU.Run/PackageManagementMode.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,6 @@ private static void GenerateScript(string cfgPath)
543543
File.WriteAllLines(scriptPath, new string[]
544544
{
545545
"#!/bin/bash",
546-
"if [ -z ${CmdletSessionID} ]",
547-
"then",
548-
" export CmdletSessionID=$PPID",
549-
"fi",
550546
"SCRIPTPATH=$(dirname \"$0\")",
551547
$"$SCRIPTPATH/clurun -s {scriptName} -r $SCRIPTPATH/{Path.GetFileName(cfgPath)} \"$@\""
552548
});

0 commit comments

Comments
 (0)