Skip to content

Commit 53f8ef5

Browse files
committed
Rename
1 parent ba3a7cb commit 53f8ef5

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

install.bash renamed to play.sh

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,40 @@
1515

1616
set -e
1717

18-
echo
19-
echo "Welcome to SQLFlow playground!"
20-
echo
18+
cat <<EOF
19+
20+
Welcome to SQLFlow playground!
21+
22+
EOF
2123

2224
if ! which vagrant >/dev/null; then
23-
echo "Install vagrant first, please refer to https://www.vagrantup.com/downloads.html"
24-
echo
25-
echo "If you are using macOS, the operation system may prevent you from installing the web-downloaded package, you can try use brew to install vagrant. like:"
26-
echo "brew cask install vagrant"
27-
echo
28-
echo "Fix this and re-run this script again please!"
29-
exit 0
25+
cat <<EOF
26+
We need Vagrant to run the playground.
27+
28+
Linux users can refer to https://www.vagrantup.com/downloads.html for the
29+
installation guide.
30+
31+
macOS users can install Vagrant using Homebrew:
32+
brew cask install vagrant
33+
EOF
34+
exit 1
3035
fi
3136

3237
if [[ -n "$(vagrant global-status --prune | grep -o 'playground')" ]]; then
33-
echo "It seems you have already installed our playground, exiting..."
34-
exit 0
38+
echo "The playground VM is running."
39+
exit 0
3540
fi
3641

37-
echo "Installing vagrant disk size plugin..."
3842
if [[ -z "$(vagrant plugin list | grep -o 'vagrant-disksize')" ]]; then
43+
echo "Install Vagrant disk size plugin ..."
3944
vagrant plugin install vagrant-disksize
4045
fi
4146

4247
CACHED_BOX="$HOME/.cache/sqlflow/ubuntu-bionic64.box"
4348
if [[ -f $CACHED_BOX ]]; then
49+
echo "Found and use cached box $CACHED_BOX"
4450
vagrant box add ubuntu/bionic64 $CACHED_BOX
4551
fi
4652

47-
echo "Start and provision the playgound now..."
53+
echo "Start and provision the playgound VM ..."
4854
vagrant up

0 commit comments

Comments
 (0)