summaryrefslogtreecommitdiff
path: root/installer_scripts/scripts/preinstall
diff options
context:
space:
mode:
Diffstat (limited to 'installer_scripts/scripts/preinstall')
-rwxr-xr-xinstaller_scripts/scripts/preinstall11
1 files changed, 11 insertions, 0 deletions
diff --git a/installer_scripts/scripts/preinstall b/installer_scripts/scripts/preinstall
new file mode 100755
index 00000000..40187fb3
--- /dev/null
+++ b/installer_scripts/scripts/preinstall
@@ -0,0 +1,11 @@
+#!/bin/bash
+set -e
+inkstitch_folder=($HOME/Library/Application\ Support/org.inkscape.Inkscape/config/inkscape/extensions/inkstitch)
+if [[ -L "${inkstitch_folder}" ]]; then
+ unlink "${inkstitch_folder}"
+ echo "Unlinking manual install, to avoid damaging user local repository."
+else
+ rm -rf "${inkstitch_folder}"
+ echo "Removing previous Ink/Stitch installation."
+fi
+exit 0