Skip to content

Commit

Permalink
Update run_creo2urdf.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicogene authored Apr 9, 2024
1 parent 0a0bb18 commit 6e8f4dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/run_creo2urdf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ if ([string]::IsNullOrEmpty($env:CREO9_INSTALL_PATH)) {
Exit 1
}
if ([string]::IsNullOrEmpty($asmPath)) {
Write-Host "asm path not specified, exiting."
Write-Host "asm path not valid, exiting."
Exit 1
}
if ([string]::IsNullOrEmpty($yamlPath)) {
Write-Host "yaml path not specified, exiting."
if ([string]::IsNullOrEmpty($yamlPath) -or -not (Test-Path $yamlPath -PathType Leaf)) {
Write-Host "yaml path not valid, exiting."
Exit 1
}
if ([string]::IsNullOrEmpty($csvPath)) {
Write-Host "csv path not specified, exiting."
if ([string]::IsNullOrEmpty($csvPath)-or -not (Test-Path $csvPath -PathType Leaf)) {
Write-Host "csv path not valid, exiting."
Exit 1
}
if ([string]::IsNullOrEmpty($outputPath)) {
Expand Down

0 comments on commit 6e8f4dc

Please sign in to comment.