Skip to content

Commit

Permalink
Fix arg parse dash to underscore (#137)
Browse files Browse the repository at this point in the history
* convert dash to underscore

* bump version
  • Loading branch information
trxcllnt authored Sep 5, 2023
1 parent 2c1a1aa commit a8dde6c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features/src/utils/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "devcontainer-utils",
"id": "utils",
"version": "23.10.7",
"version": "23.10.8",
"description": "A feature to install RAPIDS devcontainer utility scripts",
"containerEnv": {
"BASH_ENV": "/etc/bash.bash_env"
Expand Down
5 changes: 3 additions & 2 deletions features/src/utils/opt/devcontainer/bin/parse-args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ parse_args() {
break;
fi

if echo "${key}" | grep -qP "^${vars}$"; then
keys+=("${key//-/_}");
if grep -qP "^${vars}$" <<< "${key}"; then
key="${key//-/_}";
keys+=("$key");
dict[$key]="$(printf %q "${val}")";
else
rest+=("${arg}");
Expand Down

0 comments on commit a8dde6c

Please sign in to comment.