From 586bd6487a8d0c89975d657ff6f8f361d8f5f6fd Mon Sep 17 00:00:00 2001 From: Mark Phippard Date: Mon, 29 Jul 2024 13:39:45 -0400 Subject: [PATCH] Forward all arguments to script --- src/artifacts-helper/devcontainer-feature.json | 2 +- src/artifacts-helper/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/artifacts-helper/devcontainer-feature.json b/src/artifacts-helper/devcontainer-feature.json index 8740655..2a4d512 100644 --- a/src/artifacts-helper/devcontainer-feature.json +++ b/src/artifacts-helper/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "Azure Artifacts Credential Helper", "id": "artifacts-helper", - "version": "2.0.0", + "version": "2.0.1", "description": "Configures Codespace to authenticate with Azure Artifact feeds", "options": { "nugetURIPrefixes": { diff --git a/src/artifacts-helper/install.sh b/src/artifacts-helper/install.sh index 0ab4398..a167090 100755 --- a/src/artifacts-helper/install.sh +++ b/src/artifacts-helper/install.sh @@ -118,7 +118,7 @@ IFS=',' read -r -a TARGET_FILES_ARR <<< "$COMMA_SEP_TARGET_FILES" for ALIAS in "${ALIASES_ARR[@]}"; do for TARGET_FILE in "${TARGET_FILES_ARR[@]}"; do - CMD="$ALIAS() { /usr/local/bin/run-$ALIAS.sh; }" + CMD="$ALIAS() { /usr/local/bin/run-$ALIAS.sh \"$@\"; }" if [ "${INSTALL_WITH_SUDO}" = "true" ]; then sudo -u ${_REMOTE_USER} bash -c "echo '$CMD' >> $TARGET_FILE"