1#!/usr/local/bin/bash 2 3# Make sure that Dakota passes ONLY the parameters file name. If it passes 4# the wrong thing, touch FAIL to force the workflow to FAIL 5 6rm -f FAIL 7if [ $# -ne 1 ] 8then 9 touch FAIL 10fi 11# Stem of file is correct 12params=$1 13if [ "${params:0:5}" != "tb.in" ] 14then 15 touch FAIL 16fi 17 18# Tag exists 19re='^[0-9]+$' 20ptag=${params:6} 21if ! [[ "$ptag" =~ $re ]] 22then 23 touch FAIL 24fi 25 26 27