Skip to content

Commit c07f45a

Browse files
authored
Fix path for aliases (#24)
1 parent 9a0c7a0 commit c07f45a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

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": "1.0.0",
4+
"version": "1.0.1",
55
"description": "Configures Codespace to authenticate with Azure Artifact feeds",
66
"options": {
77
"nugetURIPrefixes": {

src/artifacts-helper/install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ chmod +rx /usr/local/bin/run-nuget.sh
5555
if command -v sudo >/dev/null 2>&1; then
5656
if [ "root" != "$_REMOTE_USER" ]; then
5757
if [ "${ALIAS_DOTNET}" = "true" ]; then
58-
sudo -u ${_REMOTE_USER} bash -c "echo 'alias dotnet=/usr/local/bin/run-dotnet.sh'" >> ~/.bashrc
59-
sudo -u ${_REMOTE_USER} bash -c "echo 'alias dotnet=/usr/local/bin/run-dotnet.sh'" >> ~/.zshrc
58+
sudo -u ${_REMOTE_USER} bash -c "echo 'alias dotnet=/usr/local/bin/run-dotnet.sh' >> ~/.bashrc"
59+
sudo -u ${_REMOTE_USER} bash -c "echo 'alias dotnet=/usr/local/bin/run-dotnet.sh' >> ~/.zshrc"
6060
fi
6161
if [ "${ALIAS_NUGET}" = "true" ]; then
62-
sudo -u ${_REMOTE_USER} bash -c "echo 'alias nuget=/usr/local/bin/run-nuget.sh'" >> ~/.bashrc
63-
sudo -u ${_REMOTE_USER} bash -c "echo 'alias nuget=/usr/local/bin/run-nuget.sh'" >> ~/.zshrc
62+
sudo -u ${_REMOTE_USER} bash -c "echo 'alias nuget=/usr/local/bin/run-nuget.sh' >> ~/.bashrc"
63+
sudo -u ${_REMOTE_USER} bash -c "echo 'alias nuget=/usr/local/bin/run-nuget.sh' >> ~/.zshrc"
6464
fi
6565
sudo -u ${_REMOTE_USER} bash -c "/tmp/install-provider.sh ${USENET6}"
6666
rm /tmp/install-provider.sh

0 commit comments

Comments
 (0)