Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sagor999 committed May 24, 2022
1 parent 26e4c46 commit 0bf22ca
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/supervisor/pkg/supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,18 @@ func startContentInit(ctx context.Context, cfg *Config, wg *sync.WaitGroup, cst
break
}

repoRoot := os.Getenv("GITPOD_REPO_ROOT")
log.Infof("repo root: %s", repoRoot)
if repoRoot != "" {
if _, err := os.Stat(repoRoot); !os.IsNotExist(err) {
log.Infof("calling chmod: %s", repoRoot)
err = os.Chmod(repoRoot, os.FileMode(0755))
if err != nil {
log.WithError(err).WithField("location", repoRoot).Warn("was not able to set chmod")
}
}
}

err = nil
return
}
Expand Down

0 comments on commit 0bf22ca

Please sign in to comment.