mirror of
https://github.com/sbopkg/sbopkg
synced 2025-01-29 20:34:34 +01:00
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:
parent
63a173476d
commit
66e307e9aa
2 changed files with 4 additions and 2 deletions
|
@ -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.
|
||||
+--------------------------+
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue