1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

more pathing fixes

This commit is contained in:
Kyle Spearrin
2020-06-08 13:00:52 -04:00
parent 6173cab99f
commit 0027c21630

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"
if ([string]::IsNullOrEmpty($output)) { if ([string]::IsNullOrEmpty($output)) {
$secretOutputPath = $homePath + "/secrets/"
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"
} }
} }