mirror of
https://github.com/EnumeratedDev/bpm-utils.git
synced 2026-09-16 02:56:11 +00:00
bpm-repo: create 'source' directory upon repository creation
This commit is contained in:
@@ -114,6 +114,11 @@ func createRepository(name, description string) {
|
||||
log.Fatalf("Error: could not write to file: %s", err)
|
||||
}
|
||||
|
||||
err = os.Mkdir(path.Join(name, "source"), 0755)
|
||||
if err != nil {
|
||||
log.Fatalf("Error: could not create directory: %s", err)
|
||||
}
|
||||
|
||||
fmt.Println("Repository created successfully!")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user