Explorar o código

if dir is empty after all removals, remove the dir itself, too.

Ralf S. Engelschall %!s(int64=23) %!d(string=hai) anos
pai
achega
eb0105c768
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      imagemagick/imagemagick.spec

+ 1 - 0
imagemagick/imagemagick.spec

@@ -143,6 +143,7 @@ AutoReqProv:  no
       rm -f share/ImageMagick/*.txt
       rm -f share/ImageMagick/*.html
       rm -rf share/ImageMagick/images
+      rmdir share/ImageMagick >/dev/null 2>&1 || true
       rm -f lib/libMagick.la
     )