Skip to content

Commit

Permalink
added version checker #174
Browse files Browse the repository at this point in the history
  • Loading branch information
kiihne-noaa authored Oct 31, 2024
1 parent 0ac0322 commit 8a67e19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fre/pp/checkoutScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def _checkoutTemplate(experiment, platform, target, branch='main'):
cloneproc = subprocess.run(clonecmd, shell=True, check=False, stdout=PIPE, stderr=STDOUT)

if branch == 'main':
subprocess.run(['git' ,'checkout' ,'tags/2024.01]')
local_version = subprocess.run(['fre' ,'--version'])
if local_version != '2024.01':
subprocess.run(['git' ,'checkout' ,'tags/2024.01'])

if not cloneproc.returncode == 0:
if re.search(preexist_error.encode('ASCII'),cloneproc.stdout) is not None:
Expand Down

0 comments on commit 8a67e19

Please sign in to comment.