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..5ca9ccc 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" @@ -49,6 +49,7 @@ git push if (process.platform !== "win32") { await chmod(outputPath, "755"); } + console.log(`Output log written to: ${outputPath}`); }; }