dash: Use system wide utils in install scripts.

This commit is contained in:
mashir43 2014-10-30 12:49:43 +09:00
parent 4655c5ff87
commit fad47060d4
2 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
pkgname=dash pkgname=dash
pkgver=0.5.8 pkgver=0.5.8
pkgrel=1 pkgrel=2
pkgdesc="A POSIX compliant shell that aims to be as small as possible" pkgdesc="A POSIX compliant shell that aims to be as small as possible"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://gondor.apana.org.au/~herbert/dash/" url="http://gondor.apana.org.au/~herbert/dash/"

View File

@ -1,5 +1,6 @@
post_install() { 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() { post_upgrade() {
@ -7,5 +8,6 @@ post_upgrade() {
} }
pre_remove() { 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
} }