Skip to content

Commit 21b477f

Browse files
committed
fix: robust Pulumi binary movement and path verification
1 parent 4def693 commit 21b477f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/features/pulumi/install.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ else
2626
fi
2727

2828
# Move binaries to /usr/local/bin so they are in the PATH for all users
29-
if [ -d "${PULUMI_HOME}/.pulumi/bin" ]; then
29+
# The installer might put them in bin/ or .pulumi/bin/ depending on the version/environment
30+
if [ -d "${PULUMI_HOME}/bin" ]; then
31+
mv "${PULUMI_HOME}/bin/"* /usr/local/bin/
32+
elif [ -d "${PULUMI_HOME}/.pulumi/bin" ]; then
3033
mv "${PULUMI_HOME}/.pulumi/bin/"* /usr/local/bin/
31-
rm -rf "${PULUMI_HOME}"
3234
fi
35+
rm -rf "${PULUMI_HOME}"
3336

3437
# Clean up apt lists if on Debian
3538
if [ -f /etc/debian_version ]; then

0 commit comments

Comments
 (0)