File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111fi
1212
1313for repo in alidist O2 O2Physics; do
14- [[ -d " ${repo} " ]] || { echo " Directory ${repo} not found." ; continue ; }
14+ [[ -d " ${repo} " ]] || { echo " Directory ${repo} not found in the current directory ." ; continue ; }
1515 echo " Last commit of ${repo} : $( cd " ${repo} " && git log -n 1 --pretty=" format:%ci %h" ) "
1616done
1717
18- for pkg in O2 O2Physics; do
19- log=" $ALIBUILD_WORK_DIR /BUILD/${pkg} -latest/log"
20- [[ -f " ${log} " ]] || { echo " Log file ${log} not found." ; continue ; }
21- echo " Last build of ${pkg} : $( stat -c " %y" " ${log} " ) "
22- done
18+ cmdStat=" "
19+ if [[ " $OSTYPE " == " linux-gnu" * ]]; then
20+ cmdStat=" stat -c %y"
21+ elif [[ " $OSTYPE " == " darwin" * ]]; then
22+ cmdStat=" stat -f %Sm"
23+ fi
24+
25+ if [[ -n " $cmdStat " ]]; then
26+ for pkg in O2 O2Physics; do
27+ log=" $ALIBUILD_WORK_DIR /BUILD/${pkg} -latest/log"
28+ [[ -f " ${log} " ]] || { echo " Log file ${log} not found." ; continue ; }
29+ echo " Last build of ${pkg} : $( $cmdStat " ${log} " ) "
30+ done
31+ fi
You can’t perform that action at this time.
0 commit comments