ioq3/misc/setup/preuninstall.sh
Zack Middleton 1b1d0c55f6 Fix Linux uninstaller redirecting stderr to stdout in preuninstall.sh
Last commit accidently made stderr redirect to stdout tty instead of
/dev/null.

Reported by @illwieckz.
2018-06-03 16:23:46 -05:00

10 lines
361 B
Bash
Executable file

#!/bin/sh
rmdir --ignore-fail-on-non-empty demoq3 missionpack >/dev/null 2>&1
if test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then
xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null`
if test "x$xdg_desktop_menu" = x; then
xdg_desktop_menu=./xdg-desktop-menu
fi
$xdg_desktop_menu uninstall --novendor ioquake3.desktop
rm ioquake3.desktop
fi