File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -423,11 +423,20 @@ subroutine cmd_run(settings,test)
423
423
do i= 1 ,size (executables)
424
424
if (exists(executables(i)% s)) then
425
425
if (settings% runner .ne. ' ' )then
426
- call run(settings% runner// ' ' // executables(i)% s// " " // settings% args, &
426
+ if (.not. allocated (settings% args))then
427
+ call run(settings% runner// ' ' // executables(i)% s, &
427
428
echo= settings% verbose, exitstat= stat(i))
429
+ else
430
+ call run(settings% runner// ' ' // executables(i)% s// " " // settings% args, &
431
+ echo= settings% verbose, exitstat= stat(i))
432
+ endif
428
433
else
429
- call run(executables(i)% s// " " // settings% args,echo= settings% verbose, &
434
+ if (.not. allocated (settings% args))then
435
+ call run(executables(i)% s,echo= settings% verbose, exitstat= stat(i))
436
+ else
437
+ call run(executables(i)% s// " " // settings% args,echo= settings% verbose, &
430
438
exitstat= stat(i))
439
+ endif
431
440
endif
432
441
else
433
442
write (stderr,* )' fpm::run<ERROR>' ,executables(i)% s,' not found'
You can’t perform that action at this time.
0 commit comments