Skip to content

Commit 50b0759

Browse files
committed
fix: Don't overwrite compose.yaml on rofl init
1 parent df04d4e commit 50b0759

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/rofl/mgmt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ func replaceArtifacts(manifest *buildRofl.Manifest, newArtifacts *buildRofl.Arti
712712

713713
// detectAndCreateComposeFile detects the existing compose.yaml-like file and returns its filename. Otherwise, creates an empty default compose.yaml.
714714
func detectOrCreateComposeFile() string {
715-
for _, filename := range []string{"rofl-compose.yaml", "rofl-compose.yml", "docker-compose.yaml", "docker-compose.yml", "compose.yml"} {
715+
for _, filename := range []string{"rofl-compose.yaml", "rofl-compose.yml", "docker-compose.yaml", "docker-compose.yml", "compose.yml", "compose.yaml"} {
716716
if _, err := os.Stat(filename); err == nil {
717717
return filename
718718
}

0 commit comments

Comments
 (0)