github.com/jingcheng-WU/gonum@v0.9.1-0.20210323123734-f1a2a11a8f7b/.travis/run-parts (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  if [ $# -ne 1 ]; then
     6      echo "run-parts <directory>"
     7      exit 1
     8  fi
     9  
    10  dir=$1
    11  if [[ "${dir}" = "" || ! -d "${dir}" ]]; then
    12      echo "run-parts <directory>"
    13      exit 1
    14  fi
    15  
    16  for f in $(echo ${dir%/}/*); do
    17  	[ -d $f ] && continue
    18  	[ ! -x $f ] && continue
    19  	echo "+$f"
    20  	$f
    21  done