netsrpms: silence error for missing optional .desktop files

This commit is contained in:
Silvan Calarco 2024-06-08 14:18:11 +02:00
parent 29dd3fa6d4
commit 0a7565046d

View File

@ -2,7 +2,7 @@
#
# netsrpm-install.sh - Build srpms that download sources from network
#
# Copyright (C) 2003-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2003-2024 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2005 by Massimo Pintore <massimo.pintore@qilinux.it>
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@qilinux.it>
@ -55,7 +55,7 @@ for pckname in $PACKAGES; do
exit 255
}
icon=`grep Icon= /usr/share/applications/$pckname.desktop | sed "s|Icon=||"`
icon=`grep Icon= /usr/share/applications/$pckname.desktop 2>/dev/null | sed "s|Icon=||"`
SRPMVER="${SRPMVERSION[${pckname}]}"
if [ "$SRPMVER" ]; then