]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricatasc: don't use find -delete 3175/head
authorJason Ish <ish@unx.ca>
Thu, 18 Jan 2018 12:42:19 +0000 (06:42 -0600)
committerJason Ish <ish@unx.ca>
Thu, 18 Jan 2018 13:26:29 +0000 (07:26 -0600)
For when -delete isn't supported by find. Instead use
-print0 with xargs -0.

scripts/suricatasc/Makefile.am

index f31e5f059821b09483b255bc99b1d81b8c900eac..09fca4c5fc8eb0d9833e047c443f64530c338be9 100644 (file)
@@ -14,6 +14,6 @@ clean-local:
 
 uninstall-local:
        [ ! -f "$(DESTDIR)$(prefix)/bin/suricatasc" ] || rm -f "$(DESTDIR)$(prefix)/bin/suricatasc"
-       find "$(DESTDIR)$(prefix)/lib" -name "suricatasc-*.egg-info" -delete ||true
+       find "$(DESTDIR)$(prefix)/lib" -name "suricatasc-*.egg-info" -print0 | xargs -0 rm -f ||true
 
 endif