more pathing fixes

This commit is contained in:
Kyle Spearrin 2020-06-08 13:00:52 -04:00
parent 6173cab99f
commit 0027c21630
1 changed files with 5 additions and 5 deletions

View File

@ -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"
}
}