Skip to content

Commit

Permalink
--singleshot should be applied only one container
Browse files Browse the repository at this point in the history
As singleshot is a global variable, once cvd_docker_create is called with -s,
it remains as "true." Whenever we use it, we should clear it.
  • Loading branch information
kwstephenkim committed Oct 21, 2020
1 parent 255fa28 commit 868d64d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ function cvd_docker_create {
# C | --cuttlefish[=/PATH to host package file]
# h | --help

singleshot="false" # could've been updated to "true" by previous cvd_docker_create
local params
if params=$(getopt -o 'm:A::C::sxh' -l 'share_dir:,android::,cuttlefish::,singleshot,with_host_x,help' --name "$0" -- "$@"); then
eval set -- "${params}"
Expand Down

0 comments on commit 868d64d

Please sign in to comment.