mirror of
https://github.com/bitwarden/mobile
synced 2025-02-02 11:37:14 +01:00
more pathing fixes
This commit is contained in:
parent
6173cab99f
commit
0027c21630
10
.github/scripts/decrypt-secret.ps1
vendored
10
.github/scripts/decrypt-secret.ps1
vendored
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user