aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/rosa.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/rosa.go')
-rw-r--r--internal/rosa/rosa.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go
index 209b8942..44a463af 100644
--- a/internal/rosa/rosa.go
+++ b/internal/rosa/rosa.go
@@ -523,7 +523,7 @@ cd '/usr/src/` + name + `/'
scriptEarly += "\nmkdir -p " + dir
}
scriptEarly += "\ncd " + dir + "\n"
- } else if !attr.EnterSource && attr.ScriptEarly == "" {
+ } else if !attr.EnterSource && attr.ScriptEarly == "" && dir != "" {
panic("cannot remain in root")
}