Skip to content

Commit 93325f3

Browse files
authored
Fix escaping of argument
1 parent 6e30fbe commit 93325f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/artifacts-helper/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Azure Artifacts Credential Helper",
33
"id": "artifacts-helper",
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"description": "Configures Codespace to authenticate with Azure Artifact feeds",
66
"options": {
77
"nugetURIPrefixes": {

src/artifacts-helper/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ IFS=',' read -r -a TARGET_FILES_ARR <<< "$COMMA_SEP_TARGET_FILES"
118118

119119
for ALIAS in "${ALIASES_ARR[@]}"; do
120120
for TARGET_FILE in "${TARGET_FILES_ARR[@]}"; do
121-
CMD="$ALIAS() { /usr/local/bin/run-$ALIAS.sh \"$@\"; }"
121+
CMD="$ALIAS() { /usr/local/bin/run-$ALIAS.sh \"\$@\"; }"
122122

123123
if [ "${INSTALL_WITH_SUDO}" = "true" ]; then
124124
sudo -u ${_REMOTE_USER} bash -c "echo '$CMD' >> $TARGET_FILE"

0 commit comments

Comments
 (0)