update path sep character

This commit is contained in:
Kyle Spearrin 2020-06-09 11:46:16 -04:00
parent 99b2cd2ad0
commit 0628394122
2 changed files with 6 additions and 6 deletions

View file

@ -7,17 +7,17 @@
$homePath = $env:HOME $homePath = $env:HOME
$rootPath = $env:GITHUB_WORKSPACE $rootPath = $env:GITHUB_WORKSPACE
$secretInputPath = $rootPath + "\.github\secrets" $secretInputPath = $rootPath + "/.github/secrets"
$input = $secretInputPath + "\" + $filename $input = $secretInputPath + "/" + $filename
$passphrase = $env:DECRYPT_FILE_PASSWORD $passphrase = $env:DECRYPT_FILE_PASSWORD
$secretOutputPath = $homePath + "\secrets" $secretOutputPath = $homePath + "/secrets"
if ([string]::IsNullOrEmpty($output)) { if ([string]::IsNullOrEmpty($output)) {
if ($filename.EndsWith(".gpg")) { if ($filename.EndsWith(".gpg")) {
$output = $secretOutputPath + "\" + $filename.TrimEnd(".gpg") $output = $secretOutputPath + "/" + $filename.TrimEnd(".gpg")
} else { } else {
$output = $secretOutputPath + "\" + $filename + ".plaintext" $output = $secretOutputPath + "/" + $filename + ".plaintext"
} }
} }

View file

@ -1,6 +1,6 @@
$rootPath = $env:GITHUB_WORKSPACE; $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 bitwarden-mobile-key.p12.gpg"
Invoke-Expression "& `"$decryptSecretPath`" -filename iphone-distribution-cert.p12.gpg" Invoke-Expression "& `"$decryptSecretPath`" -filename iphone-distribution-cert.p12.gpg"