]> git.sur5r.net Git - i3/i3status/commitdiff
makefile: don’t fail if setcap is unsuccessful
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 6 Apr 2010 12:39:16 +0000 (14:39 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 6 Apr 2010 12:39:16 +0000 (14:39 +0200)
Makefile

index 883bcdd15918bd826faf525332b16b654ae8bc28..9f61eef9f75d69b6734e6ada53dad47448d901c1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -54,7 +54,7 @@ install:
        install -m 755 -d $(DESTDIR)/usr/share/man/man1
        install -m 755 i3status $(DESTDIR)/usr/bin/i3status
        # Allow network configuration for getting the link speed
-       which setcap && setcap cap_net_admin=ep $(DESTDIR)/usr/bin/i3status
+       (which setcap && setcap cap_net_admin=ep $(DESTDIR)/usr/bin/i3status) || true
        install -m 644 i3status.conf $(DESTDIR)/etc/i3status.conf
        install -m 644 man/i3status.1 $(DESTDIR)/usr/share/man/man1