aboutsummaryrefslogtreecommitdiff
path: root/mktestenv.sh
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2018-02-22 15:54:38 -0500
committerMatt Rendina <mrendina@stsci.edu>2018-02-22 15:54:38 -0500
commite29cbc5eae6219a4814ac34f020e6cae083b6983 (patch)
tree187fceac8a994cc69d2d0cd09177050ca53de4bc /mktestenv.sh
parent01000868054da2b86298c623ca354286f7568ca8 (diff)
downloaddelivery_control-e29cbc5eae6219a4814ac34f020e6cae083b6983.tar.gz
Allow padded numeric as well as text delivery name suffixes.
Diffstat (limited to 'mktestenv.sh')
-rwxr-xr-xmktestenv.sh5
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