From a105bc9f81f6c269f10efb8cbbc3f2af035d0f32 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Fri, 8 Apr 2016 17:41:29 -0700 Subject: [PATCH] Don't attempt to write out commit file when not running on Windows --- makefile.shade | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/makefile.shade b/makefile.shade index bcc6e13..a0a469f 100644 --- a/makefile.shade +++ b/makefile.shade @@ -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); + } } \ No newline at end of file