summaryrefslogtreecommitdiff
path: root/installer_scripts/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'installer_scripts/scripts')
-rwxr-xr-xinstaller_scripts/scripts/preinstall14
1 files changed, 1 insertions, 13 deletions
diff --git a/installer_scripts/scripts/preinstall b/installer_scripts/scripts/preinstall
index 165128a7..01427651 100755
--- a/installer_scripts/scripts/preinstall
+++ b/installer_scripts/scripts/preinstall
@@ -1,25 +1,13 @@
#!/bin/bash
set -e
inkstitch_folder=($HOME/Library/Application\ Support/org.inkscape.Inkscape/config/inkscape/extensions/inkstitch)
-location_inkscape=(/Applications/Inkscape.app)
-
-# Checking if Inkscape is installed
-if [[ -d "${location_inkscape}" ]]; then
- echo "Inkscape is found and installed "${location_Inkscape}"."
-else
- osascript <<-AppleScript
- set theDialogText to "Ink/Stich is an Inkscape plugin. Please install and run Inkscape before installing Ink/Stitch."
- display dialog theDialogText buttons {"Okay"} default button "Okay"
- AppleScript
- exit 1
-fi
# Checking if Inkscape configuration folders are created
if [[ -d "${inkstitch_folder%config*}" ]]; then
echo "Inkscape configs are found and installed "${inkstitch_folder%config*}"."
else
osascript <<-AppleScript
- set theDialogText to "Please run Inkscape before installing Ink/Stitch."
+ set theDialogText to "Ink/Stich is an Inkscape plugin. Please install and run Inkscape before installing Ink/Stitch."
display dialog theDialogText buttons {"Okay"} default button "Okay"
AppleScript
exit 1