Run Update Shell Profile.command instead of postinstall

This commit is contained in:
CorpNewt
2026-05-17 07:30:59 -05:00
committed by GitHub
parent 360b26bcb4
commit ff8cb490ed
+7 -9
View File
@@ -131,15 +131,6 @@ download_py () {
exit $?
fi
echo
# Now we expand the package and look for a shell update script
pkgutil --expand "$tempdir/python.pkg" "$tempdir/python"
if [ -e "$tempdir/python/Python_Shell_Profile_Updater.pkg/Scripts/postinstall" ]; then
# Run the script
echo "Updating PATH..."
echo
"$tempdir/python/Python_Shell_Profile_Updater.pkg/Scripts/postinstall"
echo
fi
vers_folder="Python $(echo "$vers" | cut -d'.' -f1 -f2)"
if [ -f "/Applications/$vers_folder/Install Certificates.command" ]; then
# Certs script exists - let's execute that to make sure our certificates are updated
@@ -148,6 +139,13 @@ download_py () {
"/Applications/$vers_folder/Install Certificates.command"
echo
fi
if [ -f "/Applications/$vers_folder/Update Shell Profile.command" ]; then
# Certs script exists - let's execute that to make sure our certificates are updated
echo "Updating Shell Profile..."
echo
"/Applications/$vers_folder/Update Shell Profile.command"
echo
fi
echo "Cleaning up..."
cleanup
if [ "$just_installing" == "TRUE" ]; then