mirror of
https://github.com/sbopkg/sbopkg
synced 2024-09-19 22:40:19 +03: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
@ -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…
Reference in New Issue
Block a user