diff options
| author | أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@users.sourceforge.net> | 2010-10-25 14:03:07 +0200 | 
|---|---|---|
| committer | أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@users.sourceforge.net> | 2010-10-25 14:03:07 +0200 | 
| commit | b350aad59aa894b19c05d5cbadf26a72419c6469 (patch) | |
| tree | a40ad3d0870cebb5dab450cadb5256dd343af60f | |
| parent | 724dfceab6c174c7ba74918733b9fb9a48d70bc9 (diff) | |
Replace 'type' with 'which' to avoid bashism
| -rw-r--r-- | debian/bitlbee-common.postinst | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/debian/bitlbee-common.postinst b/debian/bitlbee-common.postinst index c965e09c..e3e28537 100644 --- a/debian/bitlbee-common.postinst +++ b/debian/bitlbee-common.postinst @@ -15,7 +15,7 @@ BITLBEE_DISABLED=0  BITLBEE_UPGRADE_DONT_RESTART=0  [ -r /etc/default/bitlbee ] && . /etc/default/bitlbee -if [ "$BITLBEE_DISABLED" = "0" ] && type update-inetd > /dev/null 2> /dev/null && +if [ "$BITLBEE_DISABLED" = "0" ] && which update-inetd > /dev/null 2> /dev/null &&     ( expr "$2" : '0\..*' > /dev/null || expr "$2" : '1\.0\..*' > /dev/null ); then  	## Make sure the inetd entry is gone (can still be there from a  	## previous version. @@ -70,7 +70,7 @@ fi  # works since the debconf code will pick a free port on new installs.  if [ "$BITLBEE_UPGRADE_DONT_RESTART" != "1" ]; then  	unset IS_UPGRADE -	if type netstat > /dev/null 2> /dev/null; then +	if which netstat > /dev/null 2> /dev/null; then  		netstat -an | grep -q :$PORT\\b.*LISTEN && IS_UPGRADE=1  	else  		[ -n "$2" ] && IS_UPGRADE=1 | 
