diff options
author | Matt Rendina <mrendina@stsci.edu> | 2018-02-22 15:54:38 -0500 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2018-02-22 15:54:38 -0500 |
commit | e29cbc5eae6219a4814ac34f020e6cae083b6983 (patch) | |
tree | 187fceac8a994cc69d2d0cd09177050ca53de4bc | |
parent | 01000868054da2b86298c623ca354286f7568ca8 (diff) | |
download | delivery_control-e29cbc5eae6219a4814ac34f020e6cae083b6983.tar.gz |
Allow padded numeric as well as text delivery name suffixes.
-rwxr-xr-x | mktestenv.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mktestenv.sh b/mktestenv.sh index 553bc09..8a84b9e 100755 --- a/mktestenv.sh +++ b/mktestenv.sh @@ -49,7 +49,10 @@ while (( "${#}" )); do shift 2 ;; -i|--iteration) - ITER=$(printf %02d ${2}) + case ${2} in + ''|*[!0-9]*) ITER=${2} ;; + *) ITER=$(printf %02d ${2}) ;; + esac shift 2 ;; --) # end argument parsing |