improved dm prompting
parent
6aa275ecb2
commit
b19ecfb8ae
|
|
@ -63,8 +63,7 @@ function dm() {
|
||||||
|
|
||||||
if [ -z $(docker-machine ls | grep $TARGET) ]; then
|
if [ -z $(docker-machine ls | grep $TARGET) ]; then
|
||||||
CREATE=false
|
CREATE=false
|
||||||
echo "machine doesn't exist (yes to create)"
|
read -e -p "machine doesn't exist (yes to create): " CREATE
|
||||||
read CREATE
|
|
||||||
if [[ $CREATE == "yes" ]]; then
|
if [[ $CREATE == "yes" ]]; then
|
||||||
docker-machine create $TARGET
|
docker-machine create $TARGET
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue