From 0027c21630204e570e8ec7a99fe3d812ba51a4cd Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 8 Jun 2020 13:00:52 -0400 Subject: [PATCH] more pathing fixes --- .github/scripts/decrypt-secret.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/scripts/decrypt-secret.ps1 b/.github/scripts/decrypt-secret.ps1 index 0104a11b2..7b57298c7 100644 --- a/.github/scripts/decrypt-secret.ps1 +++ b/.github/scripts/decrypt-secret.ps1 @@ -7,17 +7,17 @@ $homePath = $env:HOME $rootPath = $env:GITHUB_WORKSPACE -$secretInputPath = $rootPath + "/.github/secrets" -$input = $secretInputPath + $filename +$secretInputPath = $rootPath + "\.github\secrets" +$input = $secretInputPath + "\" + $filename $passphrase = $env:DECRYPT_FILE_PASSWORD +$secretOutputPath = $homePath + "\secrets" if ([string]::IsNullOrEmpty($output)) { - $secretOutputPath = $homePath + "/secrets/" if($filename.EndsWith(".gpg")) { - $output = $secretOutputPath + $filename.TrimEnd(".gpg") + $output = $secretOutputPath + "\" + $filename.TrimEnd(".gpg") } else { - $output = $secretOutputPath + $filename + ".plaintext" + $output = $secretOutputPath + "\" + $filename + ".plaintext" } }