Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /sbin/ |
Upload File : |
#!/bin/sh case "$1" in ""|-h|--help) echo "Usage: $0 directory [ ... ]" exit 1 ;; esac for dir in "$@"; do if [ ! -d "$dir" ]; then continue fi if [ -f "$dir"/index.theme ]; then # Generate or regenerate the cache if ! gtk-update-icon-cache --force --quiet "$dir"; then echo "WARNING: icon cache generation failed for $dir" fi else # No more index.theme, remove the cache if it exists rm -f "$dir"/icon-theme.cache rmdir -p --ignore-fail-on-non-empty "$dir" fi done exit 0