- fixed it other ways auto/ti/mutt-1_5_19-2
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 13 Apr 2009 21:30:47 +0000 (21:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- and set -e makes first false condition to exit, fix that too

Changed files:
    mutt.spec -> 1.222

mutt.spec

index b78d753db8c560b4594a296ad94ce4cd46005d40..951208cba4863e5faad7a9e96473a3cea40b4ca7 100644 (file)
--- a/mutt.spec
+++ b/mutt.spec
@@ -224,11 +224,10 @@ install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1
 
-cat <<EOF >$RPM_BUILD_ROOT%{_bindir}/mutt_source-muttrc.d
+cat <<'EOF' >$RPM_BUILD_ROOT%{_bindir}/mutt_source-muttrc.d
 #!/bin/sh -e
-
 for rc in /etc/Muttrc.d/*.rc; do
-       test -r "\$rc" && echo "source \"\$rc\""
+       [ ! -r "$rc" ] || echo "source \"$rc\""
 done
 EOF
 
This page took 0.065667 seconds and 4 git commands to generate.