refactor(new-drupal-module): use git

This commit is contained in:
Oliver Davies 2023-07-09 16:34:53 +01:00
parent 93e04a554b
commit 0348b260be

View file

@ -9,12 +9,11 @@ set -euo pipefail
machine_name=$1
module_name=$2
wget --quiet https://github.com/opdavies/drupal-module-template/archive/refs/heads/main.zip
unzip main.zip
mv drupal-module-template-main "${machine_name}"
rm main.zip
git clone https://github.com/opdavies/drupal-module-template \
--depth=1 \
"${machine_name}"
pushd "${machine_name}"
just rename "${module_name}"
rm -fr .github justfile phpcs.xml.dist
rm -fr .git .github justfile phpcs.xml.dist
popd