summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--office/kbgoffice/kbgoffice.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/office/kbgoffice/kbgoffice.SlackBuild b/office/kbgoffice/kbgoffice.SlackBuild
index e77f6891fd..73278f5ad8 100644
--- a/office/kbgoffice/kbgoffice.SlackBuild
+++ b/office/kbgoffice/kbgoffice.SlackBuild
@@ -64,7 +64,8 @@ mkdir -p $PKG/usr/share/applications
cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
# er, no.
-rm -rf $PKG/root
+rm -rf $PKG/${HOME:-root}/Desktop
+rmdir -p --ignore-fail-on-non-empty $PKG/${HOME:-root}
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \