summaryrefslogtreecommitdiff
path: root/distribution/posix/prerm
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:36 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:36 +0200
commitb6bd52cd7330a90fc0e44dbe6022551a8dd768a1 (patch)
tree9804282102f8c40d27407b9c94119b35eeb5013c /distribution/posix/prerm
parentc9d0740841fbe0539e42e66d3865672bfcd3ac02 (diff)
parenta14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (diff)
Update upstream source from tag 'upstream/5.3.0GA'
Update to upstream version '5.3.0GA' with Debian dir dfd14d63b0238e276ade6f54dd9100325df5b2f9
Diffstat (limited to 'distribution/posix/prerm')
-rwxr-xr-xdistribution/posix/prerm9
1 files changed, 1 insertions, 8 deletions
diff --git a/distribution/posix/prerm b/distribution/posix/prerm
index 3c5db28..b5ae917 100755
--- a/distribution/posix/prerm
+++ b/distribution/posix/prerm
@@ -7,14 +7,7 @@ else
LOGF=/dev/null
fi
-if [ -d /usr/local/share/xtrkcad ] ; then
- INSTALLDIR=/usr/local/share/xtrkcad
-elif [ -d /usr/share/xtrkcad ] ; then
- INSTALLDIR=/usr/share/xtrkcad
-else
- echo No existing XTrkCad install >> ${LOGF}
- exit 1
-fi
+INSTALLDIR=/usr/share/xtrkcad
( su -c "sh ${INSTALLDIR}/xtrkcad-setup remove ${INSTALLDIR}" -l $SUDO_USER ) >> ${LOGF} 2>&1