Skip to content

Commit d07c626

Browse files
monojenkinsakoeplinger
authored andcommitted
[pkg] Add preinstall which removes existing Mono of the same version (#11209)
Fixes ##11202
1 parent cda3acc commit d07c626

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh -x
2+
3+
PREVIOUS_INSTALL=/Library/Frameworks/Mono.framework/Versions/@@MONO_VERSION@@
4+
5+
# delete any preexisting install of this version
6+
# to make sure we're starting from a clean slate
7+
if [ -d "$PREVIOUS_INSTALL" ]; then
8+
rm -rf "$PREVIOUS_INSTALL"
9+
fi

0 commit comments

Comments
 (0)