public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dash] epel10.3: Try to add dash to /etc/shells every time, not just on new installs (#706138)
@ 2026-11-13 21:16 Petr Sabata
0 siblings, 0 replies; only message in thread
From: Petr Sabata @ 2026-11-13 21:16 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/dash
Branch : epel10.3
Commit : 48fb56be13a43a6e5732f89633dac0783c1acfa8
Author : Petr Sabata <psabata@redhat.com>
Date : 2011-05-23T09:09:56+02:00
Stats : +7/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/dash/c/48fb56be13a43a6e5732f89633dac0783c1acfa8?branch=epel10.3
Log:
Try to add dash to /etc/shells every time, not just on new installs (#706138)
---
diff --git a/dash.spec b/dash.spec
index f2bcdb9..fd2eea5 100644
--- a/dash.spec
+++ b/dash.spec
@@ -1,6 +1,6 @@
Name: dash
Version: 0.5.6
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Small and fast POSIX-compliant shell
Group: System Environment/Shells
License: BSD
@@ -26,13 +26,11 @@ mv %{buildroot}%{_bindir}/dash %{buildroot}/bin/
rm -rf %{buildroot}%{_bindir}/
%post
-if [ $1 -eq 1 ]; then
- grep -qF /bin/dash /etc/shells || echo '/bin/dash' >> /etc/shells
-fi
+grep -qF '^/bin/dash$' /etc/shells || echo '/bin/dash' >> /etc/shells
%postun
if [ $1 -eq 0 ]; then
- sed -i '/\/bin\/dash/d' /etc/shells
+ sed -i '/^\/bin\/dash$/d' /etc/shells
fi
%files
@@ -41,6 +39,10 @@ fi
%{_datadir}/man/man1/dash.1.gz
%changelog
+* Mon May 23 2011 Petr Sabata <psabata@redhat.com> - 0.5.6-5
+- Try to add dash to /etc/shells every time, not just on new installs (#706138)
+- Also, make the grep regexps a bit more strict, just to be sure
+
* Thu May 19 2011 Petr Sabata <psabata@redhat.com> - 0.5.6-4
- Install/remove dash from /etc/shells (#706138)
- Buildroot and defattr cleanup
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 21:16 [rpms/dash] epel10.3: Try to add dash to /etc/shells every time, not just on new installs (#706138) Petr Sabata
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox