Created
July 1, 2020 16:47
-
-
Save weaver299/f86ffd2e53f06225bc1350ba0f2970d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash -e | |
if [[ -z $1 ]]; then | |
echo; | |
echo "Usage: $0 <pantheon_site>"; | |
echo; | |
echo; | |
exit; | |
fi | |
PANTHEON_MACHINE_NAME=$1; | |
echo "PANTHEON_MACHINE_NAME: $PANTHEON_MACHINE_NAME"; | |
if [[ -e /Volumes/lando ]]; then | |
pushd /Volumes/lando; | |
elif [[ ! -e ~/sites/lando ]]; then | |
mkdir ~/sites/lando; | |
pushd ~/sites/lando; | |
elif [[ -d ~/sites/lando ]]; then | |
pushd ~/sites/lando; | |
else | |
pushd ~/sites; | |
fi | |
mkdir $PANTHEON_MACHINE_NAME; | |
echo;echo; | |
pushd $PANTHEON_MACHINE_NAME; | |
echo;echo; | |
tput bel; | |
echo lando init --source pantheon --pantheon-site "$PANTHEON_MACHINE_NAME"; | |
lando init --source pantheon --pantheon-site "$PANTHEON_MACHINE_NAME"; | |
lando start; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment