From 06283941226a92ab1a2a1e968ec7bcef0f4e5bc7 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 9 Jun 2020 11:46:16 -0400 Subject: [PATCH] update path sep character --- .github/scripts/decrypt-secret.ps1 | 10 +++++----- .github/scripts/ios/decrypt-secrets.ps1 | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/scripts/decrypt-secret.ps1 b/.github/scripts/decrypt-secret.ps1 index 157a2282b..c1fbc39bf 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" +$secretOutputPath = $homePath + "/secrets" if ([string]::IsNullOrEmpty($output)) { if ($filename.EndsWith(".gpg")) { - $output = $secretOutputPath + "\" + $filename.TrimEnd(".gpg") + $output = $secretOutputPath + "/" + $filename.TrimEnd(".gpg") } else { - $output = $secretOutputPath + "\" + $filename + ".plaintext" + $output = $secretOutputPath + "/" + $filename + ".plaintext" } } diff --git a/.github/scripts/ios/decrypt-secrets.ps1 b/.github/scripts/ios/decrypt-secrets.ps1 index 66e713b81..e979de75c 100644 --- a/.github/scripts/ios/decrypt-secrets.ps1 +++ b/.github/scripts/ios/decrypt-secrets.ps1 @@ -1,6 +1,6 @@ $rootPath = $env:GITHUB_WORKSPACE; -$decryptSecretPath = $($rootPath + "\.github\scripts\decrypt-secret.ps1"); +$decryptSecretPath = $($rootPath + "/.github/scripts/decrypt-secret.ps1"); Invoke-Expression "& `"$decryptSecretPath`" -filename bitwarden-mobile-key.p12.gpg" Invoke-Expression "& `"$decryptSecretPath`" -filename iphone-distribution-cert.p12.gpg"