From f1eebf78f441b2b242cbed7a59693f98d974ea21 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 8 Jul 2025 19:06:04 -0700 Subject: [PATCH] Updating command "runscript". --- src/base/abci/abc.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index e9a21e0d8..40b362c60 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -7762,8 +7762,17 @@ int Abc_CommandRunScript( Abc_Frame_t * pAbc, int argc, char ** argv ) pSpot = strstr( pScript, "*" ); if ( pSpot == NULL ) { - Abc_Print( -1, "Script should contain symbol \'*\'.\n" ); - goto usage; + for ( c = 0; c < nIters; c++ ) + { + if ( fVerbose ) + printf( "ITERATION %3d : %s\n", c, pScript ); + if ( Cmd_CommandExecute(Abc_FrameGetGlobalFrame(), pScript) ) { + Abc_Print( 1, "Something did not work out with the command \"%s\".\n", pScript ); + goto usage; + } + } + printf( "Finished iterating script %d times.\n", nIters ); + return 0; } assert( *pSpot == '*' ); for ( c = 0; c < nIters; c++ )