diff options
author | B. Watson <urchlay@slackware.uk> | 2023-06-20 17:14:45 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-06-23 07:48:08 +0700 |
commit | 02bf4d719092070173a21839ea078e1de8490d7c (patch) | |
tree | 4f1cc56461dddef12a861bea89c0688b7c99d6dc | |
parent | 5990c2eabf9e132a45ca6212a79a1661f9c8aa69 (diff) |
network/castor: Fix doinst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/castor/doinst.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/network/castor/doinst.sh b/network/castor/doinst.sh index 7bb20ae58a955..65c7e2eeb9aa5 100644 --- a/network/castor/doinst.sh +++ b/network/castor/doinst.sh @@ -1,6 +1,9 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi -if [ -x /usr/bin/gtk-update-icon-cache ]; then - /usr/bin/gtk-update-icon-cache -q usr/share/icons >/dev/null 2>&1 + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi fi |