From 89c8274f086586e22acdfe5821c30cb13f0cf065 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 1 Dec 2020 21:51:04 +0000 Subject: Do not call urpmi when there are no packages to install --- functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index 49faaf8..dfb3b16 100755 --- a/functions.sh +++ b/functions.sh @@ -863,7 +863,9 @@ function extrapackage() { if [ "x${DESKTOP_TASK}" != "x" ]; then installpkg ${DESKTOP_TASK} fi - installpkg "${PACKAGE_VALID}" + if [ "x${PACKAGE_VALID}" != "x" ]; then + installpkg "${PACKAGE_VALID}" + fi return 0 } -- cgit v1.2.1