summaryrefslogtreecommitdiffstats
path: root/polkit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'polkit/Makefile')
-rw-r--r--polkit/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/polkit/Makefile b/polkit/Makefile
index b577f9e7..2b27470e 100644
--- a/polkit/Makefile
+++ b/polkit/Makefile
@@ -15,7 +15,7 @@ clean:
rm -f $(WRAPPERS) $(POLICY)
%: org.mageia.%.policy.in
- @echo -e '#!/bin/sh\nif [[ "$$UID" != "0" ]] ; then\n exec $(BINDIR)/pkexec $(LIBEXECDIR)/$@ "$$''@"\nelse\n exec $(LIBEXECDIR)/$@ "$$''@"\nfi\n' > $@
+ @echo -e '#!/bin/sh\nif [[ "$$UID" != "0" ]] ; then\n $(BINDIR)/pkexec $(LIBEXECDIR)/$@ "$$''@"\n exit $$''?\nfi\nexec $(LIBEXECDIR)/$@ "$$''@"\n' > $@
%.policy: %.policy.in
intltool-merge --utf8 ../po $< $@ -x -u -c ../po/.intltool-merge-cache