Skip to content

Commit 213ada9

Browse files
committed
minor formatting
1 parent 343fe9b commit 213ada9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

hack/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
set -e
44

5-
./hack/build.sh && ytt -f config/ | kbld -f- | kapp deploy -a kc -f- -c -y
5+
./hack/build.sh && ytt -f config/ -v push_images=true --data-value-yaml dangerous_enable_pprof=true | kbld -f- | kapp deploy -a kc -f- -c -y

pkg/app/app_fetch.go

+6-3
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,22 @@ func (a *App) fetch(dstPath string) exec.CmdRunResult {
2020

2121
if len(a.app.Spec.Fetch) == 1 {
2222
fetch := a.app.Spec.Fetch[0]
23+
2324
err := a.fetchOne(fetch, dstPath)
2425
if err != nil {
2526
result.AttachErrorf("Fetching (0): %s", err)
2627
}
2728
} else {
2829
for i, fetch := range a.app.Spec.Fetch {
29-
subPath := path.Join(dstPath, strconv.Itoa(i))
30-
err := os.Mkdir(subPath, os.FileMode(0700))
30+
dstSubPath := path.Join(dstPath, strconv.Itoa(i))
31+
32+
err := os.Mkdir(dstSubPath, os.FileMode(0700))
3133
if err != nil {
3234
result.AttachErrorf(fmt.Sprintf("Fetching (%d): ", i)+"%s", err)
3335
break
3436
}
35-
err = a.fetchOne(fetch, subPath)
37+
38+
err = a.fetchOne(fetch, dstSubPath)
3639
if err != nil {
3740
result.AttachErrorf(fmt.Sprintf("Fetching (%d): ", i)+"%s", err)
3841
break

0 commit comments

Comments
 (0)