Skip to content

Commit

Permalink
[pkg] Add preinstall which removes existing Mono of the same version (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
monojenkins authored and akoeplinger committed Oct 17, 2018
1 parent cda3acc commit d07c626
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packaging/MacSDK/packaging/resources/preinstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh -x

PREVIOUS_INSTALL=/Library/Frameworks/Mono.framework/Versions/@@MONO_VERSION@@

# delete any preexisting install of this version
# to make sure we're starting from a clean slate
if [ -d "$PREVIOUS_INSTALL" ]; then
rm -rf "$PREVIOUS_INSTALL"
fi

0 comments on commit d07c626

Please sign in to comment.