mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-12 21:10:21 +03:00
make error message displayed when checking for updates with no packages installed consistent with other similar error messages
This commit is contained in:
parent
98a2e324af
commit
e6ca88d7d5
@ -560,7 +560,14 @@ check_for_updates() {
|
||||
VERSION_FILE=$SBOPKGTMP/sbopkg-script-version
|
||||
PROGRESSBAR_INTERRUPTED=$SBOPKGTMP/sbopkg_progressbar-interrupted
|
||||
if [[ -z $PKGS ]]; then
|
||||
echo "No packages from the $REPO_DESC detected." >> $UPDATELIST
|
||||
if [[ $DIAG ]]; then
|
||||
dialog --title "No packages found" --msgbox "$(crunch_fmt "It \
|
||||
appears that you have no $REPO_NAME packages \
|
||||
installed.")" 8 40
|
||||
else
|
||||
echo "It appears that you have no $REPO_NAME packages installed."
|
||||
fi
|
||||
return 1
|
||||
else
|
||||
crunch_fmt "Listing installed $REPO_DESC packages and flagging \
|
||||
potential updates..." >> $UPDATELIST
|
||||
|
Loading…
Reference in New Issue
Block a user