From 652b52c514691c9860f3ab77e0c7d041845b5b78 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Tue, 28 Jun 2022 22:29:11 -0400 Subject: [PATCH 1/2] Change script format --- src/templates/cp.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/templates/cp.ts b/src/templates/cp.ts index c7f57d5..8974e7a 100644 --- a/src/templates/cp.ts +++ b/src/templates/cp.ts @@ -38,10 +38,11 @@ export default class CpTemplate implements Template { #!/bin/bash $FILE="${source_file}" $RELATIVE_DEST="${dest_path}" +$COMMIT_MESSAGE="${commit_message}" git pull -cp -r $FILE $RELATIVE_DEST -git add $RELATIVE_DEST -git commit -m "${commit_message}" +cp -r $FILE "$RELATIVE_DEST" +git add "$RELATIVE_DEST" +git commit -m "$COMMIT_MESSAGE" git push `; const outputPath = await getOutputPath(this, flags); From 22dbd74393c42c3f3f6fe21d8360b89717085123 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Tue, 28 Jun 2022 22:29:28 -0400 Subject: [PATCH 2/2] Version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a260130..a5681cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-run-script", - "version": "1.1.1", + "version": "1.1.2", "description": "Run a script on multiple repositories, cloning them if needed.", "main": "dist/index.js", "type": "commonjs",