@@ -472,6 +472,7 @@ def main():
472472 else :
473473 spack_base = None
474474
475+ paths_to_update = [base_path ]
475476 test_script_filename = None
476477 for ext in ['sh' , 'csh' ]:
477478 if compiler is not None :
@@ -493,16 +494,16 @@ def main():
493494 link = os .path .join (activ_path , link )
494495 check_call (f'ln -sfn { script_filename } { link } ' )
495496
497+ # update files before directories, since they are quicker to do
498+ paths_to_update .insert (0 , script_filename )
499+
496500 check_env (test_script_filename , conda_env_name , conda_mpi , machine )
497501
498502 commands = f'{ activate_base } && conda clean -y -p -t'
499503 check_call (commands )
500504
501- paths = [activ_path , conda_base ]
502- if spack_base is not None :
503- paths .append (spack_base )
504505 group = config .get ('e3sm_unified' , 'group' )
505- update_permissions (paths , group , show_progress = True ,
506+ update_permissions (paths_to_update , group , show_progress = True ,
506507 group_writable = False , other_readable = True )
507508
508509
0 commit comments