Skip to content

Commit af7eb99

Browse files
committed
Printout change for automated builds
1 parent bbf8803 commit af7eb99

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/printouts.f90

+6-5
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ subroutine box3(version,date,commit,author)
9999
write (*,'(a,a)') repeat(" ",pad_left),trim(logo(i))
100100
end do
101101
write (*,'(a,''Version '',a,'', '',a)') repeat(" ",pad_left),trim(version),trim(date)
102-
if(author(1:1).eq.'@')then
103-
write (*,'(a,"commit (",a,") compiled by ",a)') repeat(" ",pad_left),commit,'usr'//author
102+
if(author(1:2).eq."'@")then
103+
write (*,'(a,"commit (",a,") compiled by ",a)') repeat(" ",pad_left),commit,"'usr"//author(2:)
104104
else
105105
write (*,'(a,"commit (",a,") compiled by ",a)') repeat(" ",pad_left),commit,author
106106
endif
@@ -719,12 +719,13 @@ subroutine print_crest_metadata()
719719
!* print metadata from include
720720
!********************************
721721
include 'crest_metadata.fh'
722-
722+
integer :: l
723723
write (*,'(2x,a,1x,a)') 'CREST version :',version
724724
write (*,'(2x,a,1x,a)') 'timestamp :',date
725725
write (*,'(2x,a,1x,a)') 'commit :',commit
726-
if(author(1:1).eq.'@')then
727-
write (*,'(2x,a,1x,a)') 'compiled by :','usr'//author
726+
if(author(1:2).eq."'@")then
727+
l = len_trim(author)
728+
write (*,'(2x,a,1x,a)') 'compiled by :',"'usr"//author(2:l)
728729
else
729730
write (*,'(2x,a,1x,a)') 'compiled by :',author
730731
endif

0 commit comments

Comments
 (0)