mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
more pathing fixes
This commit is contained in:
10
.github/scripts/decrypt-secret.ps1
vendored
10
.github/scripts/decrypt-secret.ps1
vendored
@@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user