File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -154,12 +154,12 @@ def _handle_file_operations() -> None:
154154 if re .match (r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$" , version ):
155155 _update_ini_file ("config.ini" , version , "version" )
156156 break
157- elif attempts >= max_attempts :
157+ attempts += 1
158+ if attempts >= max_attempts :
158159 color_print ("[x] Maximum attempts reached. Please run the script again." , "red" )
159160 exit ()
160161 else :
161162 color_print ("[!] Please enter a valid version number (e.g., 1.2.3)" , "yellow" )
162- attempts += 1
163163 color_print (f"[!] { max_attempts - attempts } attempts remaining" , "yellow" )
164164
165165 color_print ("\n [-] Great Job! Please tick the box in the GitHub PR request for completing steps in --dev" , "green" )
You can’t perform that action at this time.
0 commit comments