fix(workspace): Persist scripts with proper file permissions
This commit is contained in:
parent
34191b6d6e
commit
fcc2e044b1
@ -62,5 +62,5 @@ func PersistScriptInWorkspace(script Script, workspace string) (string, error) {
|
|||||||
|
|
||||||
func PersistScriptUnitNameInWorkspace(name string, workspace string) error {
|
func PersistScriptUnitNameInWorkspace(name string, workspace string) error {
|
||||||
unitPath := path.Join(workspace, "scripts", "unit-name")
|
unitPath := path.Join(workspace, "scripts", "unit-name")
|
||||||
return ioutil.WriteFile(unitPath, []byte(name), 644)
|
return ioutil.WriteFile(unitPath, []byte(name), 0644)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user