From a2c9b600897c45ac1a0d18fb76ec9c033b94179b Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 18 Apr 2019 16:54:04 -0700 Subject: [PATCH] Set the default windows variables [CI SKIP] --- windows/clone.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/clone.ps1 b/windows/clone.ps1 index c50c091..649c39c 100644 --- a/windows/clone.ps1 +++ b/windows/clone.ps1 @@ -29,13 +29,13 @@ if ($Env:PLUGIN_SKIP_VERIFY) { $Env:GIT_SSL_NO_VERIFY = "true" } -if ($Env:DRONE_COMMIT_AUTHOR_NAME) { +if ($Env:DRONE_COMMIT_AUTHOR_NAME -eq '' -or $Env:DRONE_COMMIT_AUTHOR_NAME -eq $null) { $Env:GIT_AUTHOR_NAME = $Env:DRONE_COMMIT_AUTHOR_NAME } else { $Env:GIT_AUTHOR_NAME = "drone" } -if ($Env:DRONE_COMMIT_AUTHOR_NAME) { +if ($Env:DRONE_COMMIT_AUTHOR_NAME -eq '' -or $Env:DRONE_COMMIT_AUTHOR_NAME -eq $null) { $Env:GIT_AUTHOR_NAME = $Env:DRONE_COMMIT_AUTHOR_NAME } else { $Env:GIT_AUTHOR_NAME = 'drone@localhost'