projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a997575
)
Added cleanup code if install dotnet cli fails
author
dseefeld
<dseefeld@microsoft.com>
Thu, 26 Oct 2017 16:27:47 +0000
(16:27 +0000)
committer
dseefeld
<dseefeld@microsoft.com>
Thu, 26 Oct 2017 16:27:47 +0000
(16:27 +0000)
Commit migrated from https://github.com/dotnet/corefx/commit/
a2764c670dcec4fcfaa027e35a9e963132e5be5d
src/libraries/init-tools.sh
patch
|
blob
|
history
diff --git
a/src/libraries/init-tools.sh
b/src/libraries/init-tools.sh
index
88f7994
..
147fed8
100755
(executable)
--- a/
src/libraries/init-tools.sh
+++ b/
src/libraries/init-tools.sh
@@
-129,6
+129,11
@@
if [ ! -e $__DOTNET_PATH ]; then
fi
cd $__DOTNET_PATH
tar -xf $__DOTNET_PATH/dotnet.tar
+ local tarResult=$?
+ if [ $tarResult -ne 0 ]; then
+ rm -f $__DOTNET_PATH/*
+ fi
+ return $tarResult
}
execute installDotNetCLI >> $__init_tools_log 2>&1