Files
logo-soft-comfort-macos/uninstall.sh
T
2026-10-26 19:06:50 +01:00

22 lines
901 B
Bash
Executable File

#!/bin/bash
# Removes only the installer-created LOGO application directory and launcher.
# Java 11, Rosetta, personal LOGO projects, downloaded Siemens media are preserved.
set -euo pipefail
APPDIR="$HOME/Applications/LOGOComfort"
STARTER='/Applications/LOGO! Soft Comfort starten.app'
[ "$(uname -s)" = 'Darwin' ] || { echo 'Nur unter macOS ausfuehrbar.' >&2; exit 1; }
[ "$(id -u)" -ne 0 ] || { echo 'Nicht als root starten.' >&2; exit 1; }
printf 'Folgende Komponenten werden entfernt:\n %s\n %s\n' "$APPDIR" "$STARTER"
printf 'Java, Rosetta, LOGO-Projektdateien und Downloads bleiben erhalten.\n'
printf 'Zum Bestaetigen ENTFERNEN eingeben: '
read -r answer
[ "$answer" = 'ENTFERNEN' ] || { echo 'Abgebrochen.'; exit 0; }
if [ -d "$STARTER" ]; then
/usr/bin/sudo /bin/rm -rf "$STARTER"
fi
if [ -d "$APPDIR" ]; then
/bin/rm -rf "$APPDIR"
fi
printf 'LOGO! Anwendung und Starter entfernt.\n'