Skip to content

Commit

Permalink
fix: uds arg check (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewg-xyz committed Jan 17, 2024
1 parent 7624fe1 commit 24b1673
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Relates to #
## Checklist before merging

- [ ] Test, docs, adr added or updated as needed
- [ ] [Contributor Guide Steps](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request) followed
- [ ] [Contributor Guide Steps](https://github.com/defenseunicorns/uds-cli/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request) followed
2 changes: 1 addition & 1 deletion src/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func init() {
}

// only vendor zarf if specifically invoked
if os.Args[1] == "zarf" {
if len(os.Args) > 1 && os.Args[1] == "zarf" {
zarfCmd := &cobra.Command{
Use: "zarf COMMAND",
Run: func(cmd *cobra.Command, args []string) {
Expand Down

0 comments on commit 24b1673

Please sign in to comment.