Skip to content

Instantly share code, notes, and snippets.

View klonos's full-sized avatar
🇦🇺
Down-unda :)

Greg Netsas klonos

🇦🇺
Down-unda :)
View GitHub Profile
@klonos
klonos / bclone.sh
Created November 24, 2021 16:00
Clone a Backdrop project; optionally fetching one or more PRs locally.
#!/usr/bin/env bash
##
# Clone a Backdrop project; optionally fetching one or more PRs locally.
#
PROJECT=$1
PRS="${@:2}" # Get all arguments after the 1st one.
PROJECT_TYPES=("module" "theme" "layout" "profile")
PROJECT_TYPE=`wget --quiet --output-document=- https://raw.githubusercontent.com/backdrop-contrib/${PROJECT}/HEAD/${PROJECT}.info | awk '/type/ {print $3}'`
@klonos
klonos / startdrop.sh
Created November 24, 2021 15:43
Create a Backdrop instance using Lando.
ISSUE=$1
PR=$2
PHP=$3
INSTALL=$4
if [[ $(basename $PWD) = "docroot" ]]; then
echo "You are already in a docroot!!! Moving up one level..."
cd ..
fi
@klonos
klonos / .lando.yml
Last active June 5, 2023 17:45
Backdrop Lando config
name: ???
# Use existing Backdrop recipe, then customize below.
recipe: backdrop
config:
# Where Backdrop resides, relative to this file.
webroot: docroot
database: mariadb
php: '?.?'
drush: '?.?.?'