Move non-Nix bash scripts
This commit is contained in:
parent
7c9ffc116e
commit
f2eea2d397
21 changed files with 11 additions and 10 deletions
19
modules/home-manager/cli/bin/scripts/new-drupal-module
Executable file
19
modules/home-manager/cli/bin/scripts/new-drupal-module
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [[ "$1" == "" || "$2" == "" ]]; then
|
||||
echo "Usage: ${0##*/} <machine-name> <module-name>"; exit 2
|
||||
fi
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
machine_name=$1
|
||||
module_name=$2
|
||||
|
||||
git clone https://github.com/opdavies/drupal-module-template \
|
||||
--depth=1 \
|
||||
"${machine_name}"
|
||||
|
||||
pushd "${machine_name}"
|
||||
just rename "${module_name}"
|
||||
rm -fr .git .github justfile phpcs.xml.dist
|
||||
popd
|
Loading…
Add table
Add a link
Reference in a new issue