Fix docker script and document (#7786)
Fixed error when keyboard parameter is omitted in interactive mode.
This commit is contained in:
parent
886eb98e2a
commit
5a02cc00a4
2 changed files with 5 additions and 2 deletions
|
@ -37,6 +37,9 @@ else
|
|||
exit 1
|
||||
fi
|
||||
fi
|
||||
if [ -z "$keyboard" ]; then
|
||||
keyboard=all
|
||||
fi
|
||||
if [ -n "$target" ]; then
|
||||
if [ "$(uname)" = "Linux" ] || docker-machine active >/dev/null 2>&1; then
|
||||
usb_args="--privileged -v /dev:/dev"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue