public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Petr Sabata <psabata@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/dash] epel10.3: Try to add dash to /etc/shells every time, not just on new installs (#706138)
Date: Fri, 13 Nov 2026 21:16:25 GMT	[thread overview]
Message-ID: <179460458561.1.16258733635775001862.rpms-dash-48fb56be13a4@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-13 21:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179460458561.1.16258733635775001862.rpms-dash-48fb56be13a4@fedoraproject.org \
    --to=psabata@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox