diff options
author | seb <seb@pkgsrc.org> | 2003-06-25 22:45:14 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2003-06-25 22:45:14 +0000 |
commit | 58a5818ee09465e4d2f4766f32c222533732b301 (patch) | |
tree | 12641c9bf09e6844d257bcfac17336c71360bbac | |
parent | eeac4cf7b17129db4fcca9bc14a24b13881bec22 (diff) | |
download | pkgsrc-58a5818ee09465e4d2f4766f32c222533732b301.tar.gz |
Better error handling.
-rw-r--r-- | mk/install/install-info | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/install/install-info b/mk/install/install-info index 10855a60897..3c505e54144 100644 --- a/mk/install/install-info +++ b/mk/install/install-info @@ -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 ;; |