Skip to content

Commit

Permalink
Bug fix: filename in downloaded binary
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinte committed Dec 8, 2023
1 parent 0939889 commit 3da215b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.f90
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ function mcfost_update(lforce_update, lmanual, n_days)
else
write(*,*) "Done"
write(*,'(a25, $)') "Decompressing binary ..."
cmd = "tar xzf mcfost_bin.tgz ; rm -rf mcfost_bin.tgz"
cmd = "mkdir -p mcfost_update ; tar xzf mcfost_bin.tgz -C mcfost_update ; rm -rf mcfost_bin.tgz"
call appel_syst(cmd, syst_status)
write(*,*) "Done"
endif
Expand Down Expand Up @@ -963,9 +963,9 @@ function mcfost_update(lforce_update, lmanual, n_days)
endif
endif

! make binary executable
! make binary executable and update it
write(*,'(a20, $)') "Updating binary ..."
cmd = "chmod a+x mcfost_update ; mv mcfost_update "//trim(current_binary)
cmd = "chmod a+x mcfost_update/mcfost ; mv mcfost_update/mcfost "//trim(current_binary)//" ; rm -rf mcfost_update"
call appel_syst(cmd, syst_status)
if (syst_status /= 0) then
write(*,*) "ERROR : the update failed for some unknown reason"
Expand Down

0 comments on commit 3da215b

Please sign in to comment.