diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2018-10-17 13:50:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 13:50:11 +0300 |
commit | a2f0c286af22de452a8584256dd8fc46234639b9 (patch) | |
tree | f43e2117ec1a23d545d9959ca7b428896dc75601 /packaging | |
parent | 237482628a63ba651616c7d192c0278a5c9c8762 (diff) |
[pkg] Add preinstall which removes existing Mono of the same version (#11203)
Fixes https://github.com/mono/mono/issues/11202
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/MacSDK/packaging/resources/preinstall | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/MacSDK/packaging/resources/preinstall b/packaging/MacSDK/packaging/resources/preinstall new file mode 100755 index 00000000000..13594e1d67e --- /dev/null +++ b/packaging/MacSDK/packaging/resources/preinstall @@ -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 |