File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
src/redist/targets/packaging Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,5 @@ first_run() {
4
4
/usr/share/dotnet/dotnet exec /usr/share/dotnet/sdk/%SDK_VERSION%/dotnet.dll internal-reportinstallsuccess " debianpackage" > /dev/null 2>&1 || true
5
5
}
6
6
7
- INSTALL_TEMP_HOME=/tmp/dotnet-installer
8
- [ -d $INSTALL_TEMP_HOME ] || mkdir $INSTALL_TEMP_HOME
7
+ INSTALL_TEMP_HOME=$( mktemp -d) # mktemp should set 700 perm automatically
9
8
HOME=$INSTALL_TEMP_HOME first_run
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ first_run() {
12
12
$INSTALL_DESTINATION /dotnet exec $INSTALL_DESTINATION /sdk/%SDK_VERSION%/dotnet.dll internal-reportinstallsuccess " $1 " > /dev/null 2>&1 || true
13
13
}
14
14
15
- [ -d $INSTALL_TEMP_HOME ] || mkdir $INSTALL_TEMP_HOME
15
+ INSTALL_TEMP_HOME= $( mktemp -d) # mktemp should set 700 perm automatically
16
16
HOME=$INSTALL_TEMP_HOME first_run
17
17
18
18
exit 0
You can’t perform that action at this time.
0 commit comments