Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Mak <[email protected]>
  • Loading branch information
makandre committed Jul 17, 2019
1 parent dd0ebd3 commit 824b357
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions devfiles/swiftTemplate/devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ apiVersion: 1.0.0
metadata:
name: swiftTemplate
projects:
- source:
type: git
location: "https://github.com/microclimate-dev2ops/swiftTemplate"
- name: swiftproject
source:
type: git
location: "https://github.com/microclimate-dev2ops/swiftTemplate"
components:
- alias: codewind-sidecar
type: chePlugin
Expand Down
2 changes: 1 addition & 1 deletion index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function buildIndex() {
for field in "${metaInfoFields2[@]}"
do
# String value contains quotes, e.g. "str"
projects="$(yq r -j "${devfileArray[$count]}" "projects[0].location")"
projects="$(yq r -j "${devfileArray[$count]}" "projects[0].source.location")"
#location="$(yq r -j "$projects" "location")"
echo " \"location\":$projects,"
done
Expand Down

0 comments on commit 824b357

Please sign in to comment.