mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-10 12:00:33 +03:00
Fix installed packages list not shown with no packages installed.
Signed-off-by: Mauro Giachero <mauro.giachero@gmail.com>
This commit is contained in:
parent
82acea8919
commit
42d33db44b
@ -316,10 +316,18 @@ get_sbo_packages() {
|
|||||||
for FILE in $PKGS; do
|
for FILE in $PKGS; do
|
||||||
echo $FILE >> $SBOPKGLIST
|
echo $FILE >> $SBOPKGLIST
|
||||||
done
|
done
|
||||||
if [[ $DIAG ]]; then
|
if [[ -f $SBOPKGLIST ]]; then
|
||||||
dialog --title "Installed SBo Packages" --textbox $SBOPKGLIST 20 65
|
if [[ $DIAG ]]; then
|
||||||
|
dialog --title "Installed SBo Packages" --textbox $SBOPKGLIST \
|
||||||
|
20 65
|
||||||
|
else
|
||||||
|
${PAGER:-more} $SBOPKGLIST
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
${PAGER:-more} $SBOPKGLIST
|
if [[ $DIAG ]]; then
|
||||||
|
dialog --title "No packages found" --msgbox "$(crunch_fmt "It \
|
||||||
|
appears that you have no SBo packages installed.")" 8 40
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user