mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 03:50:33 +03:00
correct part of the last revision which broke sbopkg's proper handling
of the situation where no SBo packages are installed
This commit is contained in:
parent
e346c03c16
commit
6c491521a1
@ -413,8 +413,8 @@ get_sbo_packages() {
|
||||
|
||||
rm -f $SBOPKGLIST
|
||||
find /var/log/packages -type f -name "*$REPO_TAG" \
|
||||
-printf "%P\n" | sort > $SBOPKGLIST
|
||||
if [[ -f $SBOPKGLIST ]]; then
|
||||
-printf "%P\n" 2> /dev/null | sort > $SBOPKGLIST
|
||||
if [[ -s $SBOPKGLIST ]]; then
|
||||
if [[ $DIAG ]]; then
|
||||
sed -i 's/$/ "" OFF/' $SBOPKGLIST
|
||||
dialog --separate-output --title "Installed $REPO_NAME Packages" --checklist \
|
||||
|
Loading…
Reference in New Issue
Block a user