summaryrefslogtreecommitdiff
path: root/network/vivaldi/douninst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/vivaldi/douninst.sh')
-rw-r--r--network/vivaldi/douninst.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/network/vivaldi/douninst.sh b/network/vivaldi/douninst.sh
index 2ab916b6df..879cbcec64 100644
--- a/network/vivaldi/douninst.sh
+++ b/network/vivaldi/douninst.sh
@@ -1,9 +1,11 @@
-# Remove any lib fetched by update-ffmpeg, when doinst.sh was first run
-if ls /var/opt/vivaldi/media-codecs-*/libffmpeg.so >/dev/null 2>&1; then
- rm /var/opt/vivaldi/media-codecs-*/libffmpeg.so
-fi
+# Remove any lib fetched by '/opt/vivaldi/update-ffmpeg' that was
+# installed system-wide into '/var/opt'
+rm -f /var/opt/vivaldi/media-codecs-*/libffmpeg.so
if [ -d /var/opt/vivaldi ]; then
# This removes directory trees that are empty or only populated by other
# empty directories.
find /var/opt/vivaldi -depth -type d -empty -exec rmdir {} \;
+ # '/var/opt' is not part of the default Slackware install, so we will
+ # remove it, if it is now empty (following the above).
+ rmdir --ignore-fail-on-non-empty /var/opt
fi