Fix the $SBOPKGTMP sanity check.

'find' prints the directory name as the first result, and if $SBOPKGTMP
is not named after sbopkg it makes the sanity check fail.
Fix this by making sure that 'find' doesn't ever return the directory
name.
Thanks to Ken Roberts for raising the issue.

Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
mauro.giachero 2009-08-28 16:57:21 +00:00
parent 63a173476d
commit 66e307e9aa
2 changed files with 4 additions and 2 deletions

View File

@ -3,5 +3,7 @@ Sbopkg 0.XX.X released. This version contains the following fixes and
enhancements:
* Fix the updates code for the 13.0 repo.
* Fix the $SBOPKGTMP sanity check. Thanks to Ken Roberts for raising the
issue.
* Update the renames file.
+--------------------------+

View File

@ -143,8 +143,8 @@ EOF
fi
# Make sure there are no unexpected files in $SBOPKGTMP
if [[ -n $(find $SBOPKGTMP -maxdepth 1 -not -name sbopkg\* 2> \
/dev/null) ]]; then
if [[ -n $(find $SBOPKGTMP -mindepth 1 -maxdepth 1 -not -name sbopkg\* \
2> /dev/null) ]]; then
cat << EOF
ERROR