Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor: refactored get_http_dir#360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
chgl wants to merge10 commits intocoder:main
base:main
Choose a base branch
Loading
fromchgl:patch-1
Open

Conversation

chgl
Copy link
Contributor

Closes #

Description

I just couldn't get the script to execute properly in its current form. I saw e.g.

[[: 1989{#d[@]}: syntax error: invalid arithmetic operator (error token is "{#d[@]}")

when trying to run the script locally. (GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)).

This uses a likely simpler bash script, but requires both grep and awk.

Type of Change

  • New module
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path:registry/coder/modules/kasmvnc
New version:v1.2.3
Breaking change: [ ] Yes [x] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun run fmt)
  • Changes tested locally

Related Issues

@chglchgl marked this pull request as ready for reviewAugust 22, 2025 13:38
@matifalimatifali added the version:patchAdd to PRs requiring a patch version upgrade labelAug 23, 2025
@matifalimatifali requested a review fromCopilotAugust 23, 2025 20:48
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR fixes a bash syntax error in theget_http_dir() function that was preventing the script from executing properly on certain bash versions. The original code used bash array syntax that was causing parsing errors.

  • Simplified the bash script logic by replacing array-based parsing with grep and awk
  • Updated module version from 1.2.2 to 1.2.3

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
registry/coder/modules/kasmvnc/run.shRefactored get_http_dir function to use grep+awk instead of bash arrays
registry/coder/modules/kasmvnc/README.mdUpdated version number to reflect the bug fix

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

chgland others added7 commitsAugust 26, 2025 19:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
The awk-based YAML parsing improvement needed proper escaping of  fieldreferences as 2936092 so Terraform's templatefile() function processes themcorrectly. This resolves template syntax errors that were causing theDateTime.pm installation failures.
@DevelopmentCats
Copy link
Contributor

@matifali I noticed a bug with ubuntu 24.04 so I added something small to resolve that.

This is tested and working. Once you approve I will go ahead and release it

Copy link
Member

@matifalimatifali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks Both

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@matifalimatifalimatifali approved these changes

@angrycubangrycubAwaiting requested review from angrycub

Assignees
No one assigned
Labels
version:patchAdd to PRs requiring a patch version upgrade
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@chgl@DevelopmentCats@matifali

[8]ページ先頭

©2009-2025 Movatter.jp