Better error handling.

This commit is contained in:
seb 2003-06-25 22:45:14 +00:00
parent eeac4cf7b1
commit 58a5818ee0

View file

@ -21,8 +21,8 @@ DEINSTALL)
${INSTALL_INFO} --delete --info-dir=${PKG_PREFIX}/${INFO_DIR} \
${PKG_PREFIX}/${INFO_DIR}/${f} 1>/dev/null 2>&1
done
_nentries="`${GREP} -c '^\*' ${PKG_PREFIX}/${INFO_DIR}/dir`"
if [ "${_nentries}" -le 1 ]; then
_nentries="`${GREP} -c '^\*' ${PKG_PREFIX}/${INFO_DIR}/dir 2>/dev/null`"
if [ x"${_nentries}" != x -a "${_nentries}" -le 1 ]; then
${RM} ${PKG_PREFIX}/${INFO_DIR}/dir
fi
;;