Skip to content

Instantly share code, notes, and snippets.

@weaver299
Created July 1, 2020 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weaver299/f86ffd2e53f06225bc1350ba0f2970d9 to your computer and use it in GitHub Desktop.
Save weaver299/f86ffd2e53f06225bc1350ba0f2970d9 to your computer and use it in GitHub Desktop.
#!/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