Better error handling.
This commit is contained in:
parent
eeac4cf7b1
commit
58a5818ee0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue