Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 49c8821

Browse files
author
Daryl Lozupone
committed
Accept y or Y for user input on activation of new container
1 parent aed5ed0 commit 49c8821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guest/cli/includes/install-container

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ -f "$1" ]; then
2020
read -p "Set ${name} to be default ${subtype}(Y/n)?: " input
2121
activate="${input:-$activate}"
2222

23-
if [ "y" = ${activate} ]; then
23+
if [ "y" = ${activate} ] || [ "Y" = ${activate} ]; then
2424
current=$(jq -r --arg subtype ${subtype} '.services[$subtype]' < /vagrant/project.json)
2525
echo "Stopping ${current}..." \
2626
&& docker stop $current 2>&1 > /dev/null \

0 commit comments

Comments
 (0)