1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-11 05:43:30 +00:00

rework build scripts

This commit is contained in:
Kyle Spearrin
2020-06-08 13:19:44 -04:00
parent f4ad1ec8e7
commit e9efcf1b92
5 changed files with 30 additions and 14 deletions

View File

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