mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
20 lines
339 B
Text
20 lines
339 B
Text
post_install() {
|
|
if [ ! "`grep /usr/bin/fish etc/shells`" ]; then
|
|
echo "updating /etc/shells... done."
|
|
sed -i "s|/bin/bash|/bin/bash\n/usr/bin/fish|" etc/shells
|
|
fi
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install $1
|
|
}
|
|
|
|
pre_remove() {
|
|
echo -ne "updating /etc/shells... \n"
|
|
sed -i '/^\/usr\/bin\/fish/d' /etc/shells
|
|
}
|
|
|
|
op=$1
|
|
shift
|
|
|
|
$op $*
|