From cadf95000e0dfc7832f124523d2dd2bf34af667f Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Tue, 28 Jun 2022 23:00:30 -0400 Subject: [PATCH 1/2] Fix variable assignment --- package.json | 2 +- src/templates/cp.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 75972a1..bb02abd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-run-script", - "version": "1.1.3", + "version": "1.1.4", "description": "Run a script on multiple repositories, cloning them if needed.", "main": "dist/index.js", "type": "commonjs", diff --git a/src/templates/cp.ts b/src/templates/cp.ts index b0c5228..3af6458 100644 --- a/src/templates/cp.ts +++ b/src/templates/cp.ts @@ -35,9 +35,9 @@ export default class CpTemplate implements Template { flags: GenerateTemplateCliFlags ) => { const templateString = `#!/bin/bash -$FILE="${source_file}" -$RELATIVE_DEST="${dest_path}" -$COMMIT_MESSAGE="${commit_message}" +FILE="${source_file}" +RELATIVE_DEST="${dest_path}" +COMMIT_MESSAGE="${commit_message}" git pull cp -r $FILE "$RELATIVE_DEST" git add "$RELATIVE_DEST" From 31279e4e9812ed8b43ef5472a78700cd773d6421 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Tue, 28 Jun 2022 23:01:04 -0400 Subject: [PATCH 2/2] Fix lint --- src/templates/cp.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/templates/cp.ts b/src/templates/cp.ts index 3af6458..5ca9ccc 100644 --- a/src/templates/cp.ts +++ b/src/templates/cp.ts @@ -49,6 +49,7 @@ git push if (process.platform !== "win32") { await chmod(outputPath, "755"); } + console.log(`Output log written to: ${outputPath}`); }; }