Skip to content

Commit a15cb45

Browse files
committed
feat: updated checkAndCreateDirectory
1 parent 4762af6 commit a15cb45

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

helper/DockerHelper.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,8 @@ func installAllSupportedPlatforms() error {
526526
}
527527

528528
func checkAndCreateDirectory(localCachePath string) error {
529-
pathCreateCommand := exec.Command("/bin/sh", "-c", "mkdir", "-p", localCachePath)
529+
makeDirCmd := "mkdir -p " + localCachePath
530+
pathCreateCommand := exec.Command("/bin/sh", "-c", makeDirCmd)
530531
err := util.RunCommand(pathCreateCommand)
531532
if err != nil {
532533
log.Println(err)

util/CommonConstants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const (
2727
RETRYCOUNT = 10
2828
HOMEDIR = "/"
2929
WORKINGDIR = "/devtroncd"
30-
LOCAL_BUILDX_LOCATION = "var/lib/devtron/buildx"
30+
LOCAL_BUILDX_LOCATION = "/var/lib/devtron/buildx"
3131
LOCAL_BUILDX_CACHE_LOCATION = LOCAL_BUILDX_LOCATION + "/cache"
3232
CIEVENT = "CI"
3333
CDSTAGE = "CD"

0 commit comments

Comments
 (0)