Skip to content

Commit 3074b75

Browse files
committed
revert: last fix as it was working properly
1 parent bfbf21b commit 3074b75

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

cmd/runtipi/main.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ var (
2020
func init() {
2121
var err error
2222

23-
config.RootFolder = os.Getenv("ROOT_FOLDER_HOST")
24-
25-
if config.RootFolder == "" {
26-
config.RootFolder, err = os.Getwd()
27-
if err != nil {
28-
fmt.Println("Error getting working directory:", err)
29-
os.Exit(1)
30-
}
23+
config.RootFolder, err = os.Getwd()
24+
if err != nil {
25+
fmt.Println("Error getting working directory:", err)
26+
os.Exit(1)
3127
}
3228

3329
if envRootFolder := os.Getenv("ROOT_FOLDER_HOST"); envRootFolder != "" {

0 commit comments

Comments
 (0)