diff options
author | Elan Ruusamäe | 2005-06-22 14:48:16 (GMT) |
---|---|---|
committer | cvs2git | 2012-06-24 12:13:13 (GMT) |
commit | edb25961e0e83f71b0c36c2fe5bb1b03affab5a0 (patch) | |
tree | d094d85660eeb964ffffc079f915031fd36a0deb | |
parent | be828b16a1f52286631a3d7e3cc2a01f648a443e (diff) | |
download | sudosh-edb25961e0e83f71b0c36c2fe5bb1b03affab5a0.zip sudosh-edb25961e0e83f71b0c36c2fe5bb1b03affab5a0.tar.gz |
- fixed sed (need to escape forward slashes)
Changed files:
sudosh.spec -> 1.12
-rw-r--r-- | sudosh.spec | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sudosh.spec b/sudosh.spec index 4d9dad1..f336a8e 100644 --- a/sudosh.spec +++ b/sudosh.spec @@ -2,7 +2,7 @@ Summary: sudo shell Summary(pl): Pow³oka sudo Name: sudosh Version: 1.6.3 -Release: 0.1 +Release: 0.2 License: Open Software License v2.0 Group: Applications/Shells Source0: http://dl.sourceforge.net/sudosh/%{name}-%{version}.tar.gz @@ -54,8 +54,8 @@ install -d $RPM_BUILD_ROOT/var/log/%{name} rm -rf $RPM_BUILD_ROOT %post -umask 022 if [ ! -f /etc/shells ]; then + umask 022 echo '%{_bindir}/sudosh' >> /etc/shells else grep -q '^%{_bindir}/sudosh$' /etc/shells || echo '%{_bindir}/sudosh' >> /etc/shells @@ -63,7 +63,7 @@ fi %preun if [ "$1" = "0" ]; then - sed -i -e '/^%{_bindir}/sudosh$/d' /etc/shells + sed -i -e '/^%(echo %{_bindir} | sed -e 's,/,\\/,g')\/sudosh$/d' /etc/shells fi %files |