slackbuilds_ponce/audio/freepats/douninst.sh
B. Watson 992e366dfd
audio/freepats: Handle .cfg symlinks better.
Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-01-14 08:50:29 +07:00

9 lines
305 B
Bash

# remove symlinks, if they belong to us.
[ -e etc/timidity.cfg ] && \
[ "$( readlink etc/timidity.cfg )" == "timidity/crude.cfg" ] && \
rm -f etc/timidity.cfg
[ -e etc/timidity/timidity.cfg ] && \
[ "$( readlink etc/timidity/timidity.cfg )" == "crude.cfg" ] && \
rm -f etc/timidity/timidity.cfg