fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
26cb52214
master
1#!/bin/sh 2# postinst script for fish 3# 4# see: dh_installdeb(1) 5 6set -e 7 8# summary of how this script can be called: 9# * <postinst> `configure' <most-recently-configured-version> 10# * <old-postinst> `abort-upgrade' <new version> 11# * <conflictor's-postinst> `abort-remove' `in-favour' <package> 12# <new-version> 13# * <postinst> `abort-remove' 14# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' 15# <failed-install-package> <version> `removing' 16# <conflicting-package> <version> 17# for details, see http://www.debian.org/doc/debian-policy/ or 18# the debian-policy package 19 20add_shell() { 21 if ! type add-shell > /dev/null 2>&1; then 22 return 23 fi 24 25 add-shell /usr/bin/fish 26} 27 28case "$1" in 29 configure) 30 add_shell 31 ;; 32 33 abort-upgrade|abort-remove|abort-deconfigure) 34 ;; 35 36 *) 37 echo "postinst called with unknown argument \`$1'" >&2 38 exit 1 39 ;; 40esac 41 42# dh_installdeb will replace this with shell code automatically 43# generated by other debhelper scripts. 44 45#DEBHELPER# 46 47exit 0