Skip to content

Commit

Permalink
Update platypus-install-compiler.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervanLunteren authored Jan 16, 2025
1 parent eb07b1b commit 1a46e0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install_files/macos/platypus-install-compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ progress 3

# Step 0: Remove previous installation
echo "Step 1 of 5 - Uninstalling ${PREVIOUS_VERSION}..."
if [[ -d "$OLD_INSTALL_DIR" ]]; then
if ! rm -rf "$OLD_INSTALL_DIR"; then
if [[ -d "$INSTALL_DIR" ]]; then
if ! rm -rf "$INSTALL_DIR"; then
echo "ALERT:Error|Failed to remove ${PREVIOUS_VERSION} ${INSTALL_DIR}"
exit 1
fi
fi

# Step 0B: remove files on the old locations if present
if [[ -d "$INSTALL_DIR" ]]; then
if [[ -d "$OLD_INSTALL_DIR" ]]; then
echo "Step 1 of 5 - Still uninstalling..."
if ! rm -rf "$INSTALL_DIR"; then
if ! rm -rf "$OLD_INSTALL_DIR"; then
echo "ALERT:Error|Failed to remove ${PREVIOUS_VERSION} ${INSTALL_DIR}"
exit 1
fi
Expand Down

0 comments on commit 1a46e0a

Please sign in to comment.