dash: Use system wide utils in install scripts.
This commit is contained in:
parent
4655c5ff87
commit
fad47060d4
@ -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/"
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user