File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " github-run-script" ,
3
- "version" : " 1.1.2 " ,
3
+ "version" : " 1.1.3 " ,
4
4
"description" : " Run a script on multiple repositories, cloning them if needed." ,
5
5
"main" : " dist/index.js" ,
6
6
"type" : " commonjs" ,
Original file line number Diff line number Diff line change 1
- import { writeFile } from "fs/promises" ;
1
+ import { chmod , writeFile } from "fs/promises" ;
2
2
import { GenerateTemplateCliFlags , Template } from "../types" ;
3
3
import { getOutputPath } from "../utils" ;
4
4
@@ -34,8 +34,7 @@ export default class CpTemplate implements Template {
34
34
commit_message : string ,
35
35
flags : GenerateTemplateCliFlags
36
36
) => {
37
- const templateString = `
38
- #!/bin/bash
37
+ const templateString = `#!/bin/bash
39
38
$FILE="${ source_file } "
40
39
$RELATIVE_DEST="${ dest_path } "
41
40
$COMMIT_MESSAGE="${ commit_message } "
@@ -47,6 +46,9 @@ git push
47
46
` ;
48
47
const outputPath = await getOutputPath ( this , flags ) ;
49
48
await writeFile ( outputPath , templateString ) ;
49
+ if ( process . platform !== "win32" ) {
50
+ await chmod ( outputPath , "755" ) ;
51
+ }
50
52
console . log ( `Output log written to: ${ outputPath } ` ) ;
51
53
} ;
52
54
}
You can’t perform that action at this time.
0 commit comments