added logic for gpg and zip
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
param (
|
||||
[Parameter(ParameterSetName='One',Mandatory=$true)][switch]$zip,
|
||||
[Parameter(ParameterSetName='One')][switch]$gpg
|
||||
[switch]$zip,
|
||||
[switch]$gpg
|
||||
)
|
||||
|
||||
# the validatescript for the param was not working when -gpg -zip was passed in so this will be the fucntion
|
||||
if ($gpg -and -not $zip) {
|
||||
Write-Error "You cannot use -gpg without -zip."
|
||||
exit 1
|
||||
}
|
||||
|
||||
# get the date/time for the back filename
|
||||
$dateTime = get-date -format ("yyyyMMdd-HHmmss")
|
||||
$env:Path += ";$PSScriptRoot\lib;$PSScriptRoot\lib\gpg\bin"
|
||||
|
||||
Reference in New Issue
Block a user