From 0348b260be9540667f58e5449d945b534b7fcaf9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 9 Jul 2023 16:34:53 +0100 Subject: [PATCH] refactor(new-drupal-module): use git --- bin/new-drupal-module | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/new-drupal-module b/bin/new-drupal-module index 33254cd..7eeca36 100755 --- a/bin/new-drupal-module +++ b/bin/new-drupal-module @@ -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