Fail init-tools atomically
authorRainer Sigwald <raines@microsoft.com>
Tue, 17 May 2016 20:30:07 +0000 (15:30 -0500)
committerRainer Sigwald <raines@microsoft.com>
Tue, 5 Jul 2016 16:02:35 +0000 (11:02 -0500)
commite101a8bb14a53a100db1e280654a318b52079221
tree843788babce1f5d8701636550fe93a3ae3d74fb9
parent33919a70d99bfe35951e774464a61f484333d3e5
Fail init-tools atomically

Before this change, a failure fairly early in the `init-tools.sh` process could result in subsequent attempts being short-circuited.

This introduces a marker file that is only written at the very end of the script, so that a `dotnet restore` or `init-tools.sh`-from-package failure can be retried immediately.

Commit migrated from https://github.com/dotnet/corefx/commit/a52a72e658e278cbf7ab470c0875be4537bf11bc
src/libraries/init-tools.sh