Skip to content

Commit

Permalink
Fix link cleanup in Mac uninstall.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
benr authored Oct 19, 2023
1 parent eea678d commit 9e2159a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/macos/packager/darwin/Resources/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ PRODUCT=__PRODUCT__

echo "Application uninstalling process started"
# remove link to shorcut file
for bin in /Library/${PRODUCT}/bin/*; do
rm /usr/local/bin/${bin}
for bin in /Library/${PRODUCT_HOME}/bin/*; do
binary="$(basename ${bin})"
if [[ -f /usr/local/bin/${binary} ]]; then
echo "Removing ${binary} link in /usr/local/bin"
rm /usr/local/bin/${binary}
fi
done
if [ $? -eq 0 ]
then
Expand Down

0 comments on commit 9e2159a

Please sign in to comment.