You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/ci/SmokeTest.ps1

20 lines
473 B

[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[string] $PathToExe
)
$ErrorActionPreference = "Stop"
if (Get-Command chmod -errorAction SilentlyContinue) {
"The chmod command was found. Setting read + execute permission."
& chmod +rx $PathToExe
}
"Execute recyclarr command to ensure basic functionality is working"
& $PathToExe -h
if ($LASTEXITCODE -ne 0) {
"Recyclarr executable failed to run with exit code: $LASTEXITCODE"
exit -1
}