Changeset b350aad for debian


Ignore:
Timestamp:
2010-10-25T12:03:07Z (13 years ago)
Author:
أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@…>
Branches:
master
Children:
56ff331
Parents:
724dfce
Message:

Replace 'type' with 'which' to avoid bashism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/bitlbee-common.postinst

    r724dfce rb350aad  
    1616[ -r /etc/default/bitlbee ] && . /etc/default/bitlbee
    1717
    18 if [ "$BITLBEE_DISABLED" = "0" ] && type update-inetd > /dev/null 2> /dev/null &&
     18if [ "$BITLBEE_DISABLED" = "0" ] && which update-inetd > /dev/null 2> /dev/null &&
    1919   ( expr "$2" : '0\..*' > /dev/null || expr "$2" : '1\.0\..*' > /dev/null ); then
    2020        ## Make sure the inetd entry is gone (can still be there from a
     
    7171if [ "$BITLBEE_UPGRADE_DONT_RESTART" != "1" ]; then
    7272        unset IS_UPGRADE
    73         if type netstat > /dev/null 2> /dev/null; then
     73        if which netstat > /dev/null 2> /dev/null; then
    7474                netstat -an | grep -q :$PORT\\b.*LISTEN && IS_UPGRADE=1
    7575        else
Note: See TracChangeset for help on using the changeset viewer.