From edb25961e0e83f71b0c36c2fe5bb1b03affab5a0 Mon Sep 17 00:00:00 2001 From: Elan Ruusamäe Date: Wed, 22 Jun 2005 14:48:16 +0000 Subject: - fixed sed (need to escape forward slashes) Changed files: sudosh.spec -> 1.12 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 -- cgit v0.10.2