Pull extra/fish fish.install
This commit is contained in:
2
.SRCINFO
2
.SRCINFO
@@ -1,6 +1,6 @@
|
|||||||
pkgbase = fish-git
|
pkgbase = fish-git
|
||||||
pkgdesc = User friendly shell intended mostly for interactive use.
|
pkgdesc = User friendly shell intended mostly for interactive use.
|
||||||
pkgver = 3.7.1.r2151.g75da00df9
|
pkgver = 3.7.1.r2398.g81ff6db62
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
epoch = 2
|
epoch = 2
|
||||||
url = https://github.com/fish-shell/fish-shell
|
url = https://github.com/fish-shell/fish-shell
|
||||||
|
|||||||
2
PKGBUILD
2
PKGBUILD
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
pkgname=fish-git
|
pkgname=fish-git
|
||||||
_gitname="fish-shell"
|
_gitname="fish-shell"
|
||||||
pkgver=3.7.1.r2151.g75da00df9
|
pkgver=3.7.1.r2398.g81ff6db62
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
epoch=2
|
epoch=2
|
||||||
pkgdesc="User friendly shell intended mostly for interactive use."
|
pkgdesc="User friendly shell intended mostly for interactive use."
|
||||||
|
|||||||
16
fish.install
16
fish.install
@@ -1,20 +1,14 @@
|
|||||||
post_install() {
|
post_install() {
|
||||||
if [ ! "`grep /usr/bin/fish etc/shells`" ]; then
|
grep -qe '^/usr/bin/fish$' etc/shells || echo '/usr/bin/fish' >> etc/shells
|
||||||
echo "updating /etc/shells... done."
|
grep -qe '^/bin/fish$' etc/shells || echo '/bin/fish' >> etc/shells
|
||||||
sed -i "s|/bin/bash|/bin/bash\n/usr/bin/fish|" etc/shells
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
post_install $1
|
post_install
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_remove() {
|
pre_remove() {
|
||||||
echo -ne "updating /etc/shells... \n"
|
sed -ri -e '\|^/usr/bin/fish$|d' -e '\|^/bin/fish$|d' etc/shells
|
||||||
sed -i '/^\/usr\/bin\/fish/d' /etc/shells
|
|
||||||
}
|
}
|
||||||
|
|
||||||
op=$1
|
# vim:set ts=2 sw=2 et:
|
||||||
shift
|
|
||||||
|
|
||||||
$op $*
|
|
||||||
|
|||||||
Reference in New Issue
Block a user