Don't attempt to write out commit file when not running on Windows
This commit is contained in:
Родитель
e40b1af734
Коммит
a105bc9f81
|
@ -14,8 +14,11 @@ custom-goals
|
|||
|
||||
#create-commit-file target='compile'
|
||||
@{
|
||||
var artifactsDir = Path.Combine(Directory.GetCurrentDirectory(), "artifacts");
|
||||
var commitHashFile = Path.Combine(artifactsDir, "commit");
|
||||
Directory.CreateDirectory(artifactsDir);
|
||||
GitCommand("rev-parse HEAD >> " + commitHashFile);
|
||||
if (!IsLinux)
|
||||
{
|
||||
var artifactsDir = Path.Combine(Directory.GetCurrentDirectory(), "artifacts");
|
||||
var commitHashFile = Path.Combine(artifactsDir, "commit");
|
||||
Directory.CreateDirectory(artifactsDir);
|
||||
GitCommand("rev-parse HEAD >> " + commitHashFile);
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче