Skip to content

Commit

Permalink
More details in update message on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinte committed Sep 19, 2024
1 parent 031c757 commit 310a817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.f90
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ function mcfost_update(lforce_update, lmanual, n_days)
if (operating_system=="Linux ") then
url = trim(webpage)//"mcfost_Linux-X64.tar.gz"
url_sha1 = trim(webpage)//"mcfost_Linux-X64.sha1"
write(*,*) "Your system is ", operating_system
else if (operating_system=="Darwin") then
if (architecture == "arm64") then
url = trim(webpage)//"mcfost_macOS-ARM64.tar.gz"
Expand All @@ -887,14 +888,14 @@ function mcfost_update(lforce_update, lmanual, n_days)
url = trim(webpage)//"mcfost_macOS-X64.tar.gz"
url_sha1 = trim(webpage)//"mcfost_macOS-X64.sha1"
endif
write(*,*) "Your system is ", operating_system, "on ", architecture
else
write(*,*) "Unknown operating system : error 2"
write(*,*) "Cannot download new binary"
call exit_update(lmanual, n_days, lupdate)
return
endif

write(*,*) "Your system is ", operating_system

! Download
write(*,'(a32, $)') "Downloading the new version ..."
Expand Down Expand Up @@ -948,7 +949,6 @@ function mcfost_update(lforce_update, lmanual, n_days)
! check where is the current binary
call get_command_argument(0,current_binary)
if (current_binary(1:1)/=".") then

write(*,'(a28, $)') "Locating current binary ..."
cmd = "rm -rf which_mcfost_binary.txt && which "//trim(current_binary)// &
" | awk '{print "//' "\"" $NF "\""'//"}' > which_mcfost_binary.txt"
Expand Down

0 comments on commit 310a817

Please sign in to comment.