File tree 1 file changed +10
-3
lines changed 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,20 @@ main() {
57
57
fi
58
58
59
59
detect_username
60
-
61
60
if [ " $AIDER_VERSION " = latest ]; then
62
61
echo " Installing latest Aider..."
63
- su -c ' pipx install aider-chat' " $USERNAME "
62
+ # NOTE(ivy): PS1=true works around an edge case where pipx isn't added
63
+ # to the PATH. This happens with the `mcr.microsoft.com/devcontainers/base:ubuntu`
64
+ # image which includes a check at the top of /etc/bash.bashrc which
65
+ # returns in non-interactive shells.
66
+ su - " $USERNAME " bash -c " PS1=true; . /etc/bash.bashrc || true; pipx install aider-chat"
64
67
else
65
68
echo " Installing Aider version $AIDER_VERSION ..."
66
- su -c " pipx install aider-chat==${AIDER_VERSION} " " $USERNAME "
69
+ # NOTE(ivy): PS1=true works around an edge case where pipx isn't added
70
+ # to the PATH. This happens with the `mcr.microsoft.com/devcontainers/base:ubuntu`
71
+ # image which includes a check at the top of /etc/bash.bashrc which
72
+ # returns in non-interactive shells.
73
+ su - " $USERNAME " bash -c " PS1=true; . /etc/bash.bashrc || true; pipx install aider-chat==${AIDER_VERSION} "
67
74
fi
68
75
69
76
echo " Aider has been installed!"
You can’t perform that action at this time.
0 commit comments