1#!/bin/sh 2 3set -e 4 5pathfind() { 6 OLDIFS="$IFS" 7 IFS=: 8 for p in $PATH; do 9 if [ -x "$p/$*" ]; then 10 IFS="$OLDIFS" 11 return 0 12 fi 13 done 14 IFS="$OLDIFS" 15 return 1 16} 17 18if pathfind update-mime; then 19 update-mime 20fi 21 22#DEBHELPER# 23