diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-06-08 14:19:16 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-06-09 11:58:46 +0000 |
commit | 79fd9fd1ba411d28fa2d369520d5354d5a35b7c0 (patch) | |
tree | c64f9917e423eb399263e101482b9987ac44de04 | |
parent | 2c99dd6dd264cea3792b352d90c8f833b6312c9c (diff) |
start-container-docker.sh: Assert that the task parameter has an acceptable value
This is currently either build, bench or test.
Change-Id: I96fa7adad47e0bb8d95668462218fb21d08a2cd7
-rwxr-xr-x | start-container-docker.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh index f13b7290..4b5cbecd 100755 --- a/start-container-docker.sh +++ b/start-container-docker.sh @@ -126,7 +126,10 @@ do ;; --task) task=$2 - [ x${task} = x ] && usage + case "${task}" in + build|bench|test) ;; + *) usage ;; + esac shift 2 ;; --user) |