From fad47060d4b3b943c5d8dbb030dc9fd977951dd8 Mon Sep 17 00:00:00 2001 From: mashir43 Date: Thu, 30 Oct 2014 12:49:43 +0900 Subject: [PATCH] dash: Use system wide utils in install scripts. --- dash/PKGBUILD | 2 +- dash/dash.install | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dash/PKGBUILD b/dash/PKGBUILD index e8225f5d..3466ffe1 100644 --- a/dash/PKGBUILD +++ b/dash/PKGBUILD @@ -2,7 +2,7 @@ pkgname=dash pkgver=0.5.8 -pkgrel=1 +pkgrel=2 pkgdesc="A POSIX compliant shell that aims to be as small as possible" arch=('i686' 'x86_64') url="http://gondor.apana.org.au/~herbert/dash/" diff --git a/dash/dash.install b/dash/dash.install index 56160878..c0b9ec41 100644 --- a/dash/dash.install +++ b/dash/dash.install @@ -1,5 +1,6 @@ post_install() { - usr/bin/grep -q '/usr/bin/dash' etc/shells || echo '/usr/bin/dash' >> etc/shells + grep -q '/usr/bin/ash' etc/shells || echo '/usr/bin/ash' >> etc/shells + grep -q '/usr/bin/dash' etc/shells || echo '/usr/bin/dash' >> etc/shells } post_upgrade() { @@ -7,5 +8,6 @@ post_upgrade() { } pre_remove() { - usr/bin/sed -i '/^\/usr\/bin\/dash/d' etc/shells + sed -i '/^\/usr\/bin\/ash/d' etc/shells + sed -i '/^\/usr\/bin\/dash/d' etc/shells }