mirror of
https://github.com/bitwarden/mobile
synced 2025-12-11 05:43:30 +00:00
rework build scripts
This commit is contained in:
4
.github/scripts/decrypt-secret.ps1
vendored
4
.github/scripts/decrypt-secret.ps1
vendored
@@ -14,14 +14,14 @@ $passphrase = $env:DECRYPT_FILE_PASSWORD
|
||||
$secretOutputPath = $homePath + "\secrets"
|
||||
|
||||
if ([string]::IsNullOrEmpty($output)) {
|
||||
if($filename.EndsWith(".gpg")) {
|
||||
if ($filename.EndsWith(".gpg")) {
|
||||
$output = $secretOutputPath + "\" + $filename.TrimEnd(".gpg")
|
||||
} else {
|
||||
$output = $secretOutputPath + "\" + $filename + ".plaintext"
|
||||
}
|
||||
}
|
||||
|
||||
if(!(Test-Path -Path $secretOutputPath))
|
||||
if (!(Test-Path -Path $secretOutputPath))
|
||||
{
|
||||
New-Item -ItemType Directory -Path $secretOutputPath
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user