summaryrefslogtreecommitdiff
path: root/installer_scripts/scripts/preinstall
blob: 40187fb35d2085fe49a0b6d026b5bc36fbe149cd (plain)
1
2
3
4
5
6
7
8
9
10
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