Files
duplicati/Installer/MacOS/app-scripts/preinstall
T
Kenneth Skovhede 3da45c53df Initial work on building package folders.
Next step is building the installers.
2024-03-20 16:17:17 +01:00

12 lines
440 B
Bash
Executable File

#!/bin/bash
set -e
if pgrep -x "Duplicati"; then
RES=`osascript \
-e "set question to display dialog \"Duplicati is currently running, you should quit before installing a new version\" with title \"Duplicati is already running\" buttons {\"Stop installation\", \"Continue\"} default button 1" \
-e "if button returned of question is equal to \"Stop installation\" then return \"STOP\""`
if [ "$RES" == "STOP" ];
then
exit 1
fi
fi